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.003332102
Marked as misclassified No
Message-id <1229281641.77.0.655389756629.issue4664@psf.upfronthosting.co.za>
In-reply-to
Content
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:

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