Fix help in command line, fix read file
This commit is contained in:
1 parent
adf61dd669
commit
dbebda65d9
2 files changed
+12
-13
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user