Message84956
In Py2x, have this code:
import urllib
s = urllib.urlopen('http://www.python.org')
print s
Run 2to3, on this, refactoring works only on import urllib and print
statements.
@@ -1,3 +1,3 @@
-import urllib
+import urllib.request, urllib.parse, urllib.error
s = urllib.urlopen('http://www.python.org')
-print s
+print(s)
There urllib.urlopen, needs to be refactored into urllib.request.urlopen |
|
Date |
User |
Action |
Args |
2009-04-01 01:57:02 | orsenthil | set | recipients:
+ orsenthil |
2009-04-01 01:57:02 | orsenthil | set | messageid: <1238551022.24.0.463432313749.issue5637@psf.upfronthosting.co.za> |
2009-04-01 01:57:00 | orsenthil | link | issue5637 messages |
2009-04-01 01:57:00 | orsenthil | create | |
|