On windows, lib2to3 should accept / and \ in the fixer_dir argument

Needed to let the tests pass
This commit is contained in:
Amaury Forgeot d'Arc 2008-06-17 23:09:19 +00:00
parent aa4e47a04d
commit 19fc7f6635
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@ class RefactoringTool(object):
want a pre-order AST traversal, and post_order is the list that want
post-order traversal.
"""
fixer_pkg = ".".join(self.fixer_dir.split(os.path.sep))
fixer_pkg = self.fixer_dir.replace(os.path.sep, ".")
if os.path.altsep:
fixer_pkg = self.fixer_dir.replace(os.path.altsep, ".")
pre_order_fixers = []
post_order_fixers = []
fix_names = self.options.fix