[Python-checkins] r70991 - sandbox/trunk/2to3/lib2to3/fixes/fix_urllib.py

benjamin.peterson python-checkins at python.org
Wed Apr 1 22:54:50 CEST 2009


Author: benjamin.peterson
Date: Wed Apr  1 22:54:50 2009
New Revision: 70991

Log:
map urllib.urlopen to urllib.request.open #5637

Modified:
   sandbox/trunk/2to3/lib2to3/fixes/fix_urllib.py

Modified: sandbox/trunk/2to3/lib2to3/fixes/fix_urllib.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixes/fix_urllib.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixes/fix_urllib.py	Wed Apr  1 22:54:50 2009
@@ -12,7 +12,7 @@
 MAPPING = {'urllib':  [
                 ('urllib.request',
                     ['URLOpener', 'FancyURLOpener', 'urlretrieve',
-                     '_urlopener', 'urlcleanup']),
+                     '_urlopener', 'urlopen', 'urlcleanup']),
                 ('urllib.parse',
                     ['quote', 'quote_plus', 'unquote', 'unquote_plus',
                      'urlencode', 'pathname2url', 'url2pathname', 'splitattr',


More information about the Python-checkins mailing list