summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-17 23:09:19 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-17 23:09:19 (GMT)
commit19fc7f6635fedea250e584fca940995d3ea969a3 (patch)
tree331075a291c4590e9498005d5ce3fd15a9a4079a /Lib/lib2to3
parentaa4e47a04db7703bf7875011f1c57d3c650d3f3d (diff)
downloadcpython-19fc7f6635fedea250e584fca940995d3ea969a3.zip
cpython-19fc7f6635fedea250e584fca940995d3ea969a3.tar.gz
cpython-19fc7f6635fedea250e584fca940995d3ea969a3.tar.bz2
On windows, lib2to3 should accept / and \ in the fixer_dir argument
Needed to let the tests pass
Diffstat (limited to 'Lib/lib2to3')
-rwxr-xr-xLib/lib2to3/refactor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py
index da05bc3..97c9e12 100755
--- a/Lib/lib2to3/refactor.py
+++ b/Lib/lib2to3/refactor.py
@@ -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