running lib2to3.fixes.fix_idioms
This commit is contained in:
1 parent
9b9ed0ad0f
commit
a5599f3eab
9 files changed
+26
-28
No files matched your search
@@ -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')):
|
||||
|
||||
Reference in new issue
Block a user