running lib2to3.fixes.fix_idioms

This commit is contained in:
ilvalle committed 2016-05-29 08:31:20 +02:00
1 parent 9b9ed0ad0f
commit a5599f3eab
9 files changed
+26 -28

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ def _prepare_exec_for_file(filename):
raise 'The file provided (%s) does is not a valid Python file.'
filename = os.path.realpath(filename)
dirpath = filename
while 1:
while True:
dirpath, extra = os.path.split(dirpath)
module.append(extra)
if not os.path.isfile(os.path.join(dirpath, '__init__.py')):