mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Move some control flow logic
This commit is contained in:
+5
-4
@@ -950,11 +950,12 @@ 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
|
||||
# return the original file if we can't find any pipfile or lockfile sections
|
||||
else:
|
||||
return input_file
|
||||
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
|
||||
|
||||
for section in sections:
|
||||
split_dict = {}
|
||||
|
||||
Reference in New Issue
Block a user