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 orsenthil
Recipients orsenthil
Date 2009-04-01.01:57:00
SpamBayes Score 0.054274376
Marked as misclassified No
Message-id <1238551022.24.0.463432313749.issue5637@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-04-01 01:57:02orsenthilsetrecipients: + orsenthil
2009-04-01 01:57:02orsenthilsetmessageid: <1238551022.24.0.463432313749.issue5637@psf.upfronthosting.co.za>
2009-04-01 01:57:00orsenthillinkissue5637 messages
2009-04-01 01:57:00orsenthilcreate