unrelated: fix some warnings and redundant elements

This commit is contained in:
David-Wobrock authored and David Wobrock committed 2019-02-24 15:55:05 +01:00
1 parent 5c7dab8db2
commit 999ee2fa5e
3 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ def split_migration_path(migration_path):
decomposed_path = split_path(migration_path)
for i, p in enumerate(decomposed_path):
if p == MIGRATION_FOLDER_NAME:
return (decomposed_path[i - 1], os.path.splitext(decomposed_path[i + 1])[0])
return decomposed_path[i - 1], os.path.splitext(decomposed_path[i + 1])[0]
def compose_migration_path(django_folder, app_name, migration):