This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lregebro
Recipients lregebro
Date 2008-12-14.19:07:20
SpamBayes Score 0.0033321
Marked as misclassified No
Message-id <>
If you have urlparse before cStringIO in an import line, 2to3 will not
convert the cStringIO to io. However, reverse the order, and urlparse
will not get translated.

So this file:
import urlparse, cStringIO
import cStringIO, urlparse

will with 2to3 return the following diff:

--- (original)
+++ (refactored)
@@ -1,3 +1,3 @@
-import urlparse, cStringIO
-import cStringIO, urlparse
+import urllib.parse, cStringIO
+import io, urlparse
Date User Action Args
2008-12-14 19:07:21lregebrosetrecipients: + lregebro
2008-12-14 19:07:21lregebrosetmessageid: <>
2008-12-14 19:07:20lregebrolinkissue4664 messages
2008-12-14 19:07:20lregebrocreate