[issue4664] fix_imports does not refactor "import urlparse, cStringIO" correctly

Alexandre Vassalotti report at bugs.python.org
Sun Dec 14 20:20:15 CET 2008


Alexandre Vassalotti <alexandre at peadrop.com> added the comment:

Sorry, I still cannot reproduce it. Could you attach your test file?
Maybe it is some weird encoding bug.

alex at helios:~$ 2to3 -f imports test.py
--- test.py (original)
+++ test.py (refactored)
@@ -1,2 +1,2 @@
-import urlparse, cStringIO
-import cStringIO, urlparse
+import urllib.parse, io
+import io, urllib.parse
RefactoringTool: Files that need to be modified:
RefactoringTool: test.py

----------
nosy: +alexandre.vassalotti
title: import urlparse, cStringIO breaks -> fix_imports does not refactor "import urlparse, cStringIO" correctly

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4664>
_______________________________________


More information about the Python-bugs-list mailing list