From: Amaury Forgeot d'Arc Date: Tue, 17 Jun 2008 23:09:19 +0000 (+0000) Subject: On windows, lib2to3 should accept / and \ in the fixer_dir argument X-Git-Tag: v2.6b1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19fc7f6635fedea250e584fca940995d3ea969a3;p=python On windows, lib2to3 should accept / and \ in the fixer_dir argument Needed to let the tests pass --- diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py index da05bc35e2..97c9e122bd 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