Undo control flow changes and move comment

This commit is contained in:
Dan Ryan
2017-12-03 19:22:18 -05:00
parent b5ecb02154
commit c3e203caea
+4 -5
View File
@@ -950,12 +950,11 @@ def split_section(input_file, section_suffix, test_function):
lockfile_sections = ('default', 'develop')
if any(section in input_file for section in pipfile_sections):
sections = pipfile_sections
elif any(section in input_file for section in lockfile_sections):
sections = lockfile_sections
else:
if any(section in input_file for section in lockfile_sections):
sections = lockfile_sections
else:
# return the original file if we can't find any pipfile or lockfile sections
return input_file
# return the original file if we can't find any pipfile or lockfile sections
return input_file
for section in sections:
split_dict = {}