satisfy black

This commit is contained in:
Tobias Kroenke authored and David Wobrock committed 2019-05-19 22:29:02 +02:00
1 parent 48cba37764
commit 08e15b84ae
1 file changed
+1 -3
+1 -3
View File
@@ -76,9 +76,7 @@ def analyse_sql_statements(sql_statements):
for test in migration_tests: for test in migration_tests:
if test["fn"](statement, errors=errors): if test["fn"](statement, errors=errors):
logger.debug("Testing {0} -- ERROR".format(statement)) logger.debug("Testing {0} -- ERROR".format(statement))
table_search = re.search( table_search = re.search("TABLE `([^`]*)`", statement, re.IGNORECASE)
"TABLE `([^`]*)`", statement, re.IGNORECASE
)
col_search = re.search("COLUMN `([^`]*)`", statement, re.IGNORECASE) col_search = re.search("COLUMN `([^`]*)`", statement, re.IGNORECASE)
err = { err = {
"err_msg": test["err_msg"], "err_msg": test["err_msg"],