Commit 0765289e authored by Aaron Spaulding's avatar Aaron Spaulding

distutils scripts -- correct order of operations so 'from ... import' lines...

distutils scripts -- correct order of operations so 'from ... import' lines are correctly recognized.
parent 76a6052f
...@@ -1107,7 +1107,7 @@ def _distutils_script(path, dest, script_content, initialization, rsetup): ...@@ -1107,7 +1107,7 @@ def _distutils_script(path, dest, script_content, initialization, rsetup):
for line_number, line in enumerate(lines): for line_number, line in enumerate(lines):
if not 'import' in line: if not 'import' in line:
continue continue
if not line.startswith('import') or line.startswith('from'): if not (line.startswith('import') or line.startswith('from')):
continue continue
if '__future__' in line: if '__future__' in line:
continue continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment