]> granicus.if.org Git - python/commitdiff
On windows, lib2to3 should accept / and \ in the fixer_dir argument
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 17 Jun 2008 23:09:19 +0000 (23:09 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 17 Jun 2008 23:09:19 +0000 (23:09 +0000)
Needed to let the tests pass

Lib/lib2to3/refactor.py

index da05bc35e2848d9a53a97a2ef7160f804d200bc0..97c9e122bd60eaed6a426e329562670a474481b2 100755 (executable)
@@ -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