diff options
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/lib2to3/refactor.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py index 1b8a811..af0b3a8 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 = fixer_pkg.replace(os.path.altsep, ".") pre_order_fixers = [] post_order_fixers = [] fix_names = self.options.fix |