Fix help in command line, fix read file

This commit is contained in:
yongming authored and David Wobrock committed 2019-10-10 22:50:17 +02:00
1 parent adf61dd669
commit dbebda65d9
2 files changed
+12 -13

No files matched your search

+4 -2
View File
@@ -256,8 +256,10 @@ class MigrationLinter(object):
migrations = []
with open(migrations_file_path, "r") as f:
lines = f.read()
for line in lines:
for line in f:
if not line:
continue
if (
re.search(r"/{0}/.*\.py".format(MIGRATIONS_MODULE_NAME), line)
and "__init__" not in line