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):
for line_number, line in enumerate(lines):
if not 'import' in line:
continue
if not line.startswith('import') or line.startswith('from'):
if not (line.startswith('import') or line.startswith('from')):
continue
if '__future__' in line:
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