Message77815
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 |
|
Date |
User |
Action |
Args |
2008-12-14 19:07:21 | lregebro | set | recipients:
+ lregebro |
2008-12-14 19:07:21 | lregebro | set | messageid: <1229281641.77.0.655389756629.issue4664@psf.upfronthosting.co.za> |
2008-12-14 19:07:20 | lregebro | link | issue4664 messages |
2008-12-14 19:07:20 | lregebro | create | |
|