[Python-3000-checkins] r65027 - in python/branches/py3k: Lib/lib2to3 Lib/lib2to3/fixes/fix_urllib.py

benjamin.peterson python-3000-checkins at python.org
Wed Jul 16 20:52:51 CEST 2008


Author: benjamin.peterson
Date: Wed Jul 16 20:52:50 2008
New Revision: 65027

Log:
Merged revisions 65026 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r65026 | benjamin.peterson | 2008-07-16 13:48:35 -0500 (Wed, 16 Jul 2008) | 9 lines
  
  Merged revisions 65025 via svnmerge from 
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
  
  ........
    r65025 | benjamin.peterson | 2008-07-16 13:46:30 -0500 (Wed, 16 Jul 2008) | 1 line
    
    remove use of has_key
  ........
................


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/lib2to3/   (props changed)
   python/branches/py3k/Lib/lib2to3/fixes/fix_urllib.py

Modified: python/branches/py3k/Lib/lib2to3/fixes/fix_urllib.py
==============================================================================
--- python/branches/py3k/Lib/lib2to3/fixes/fix_urllib.py	(original)
+++ python/branches/py3k/Lib/lib2to3/fixes/fix_urllib.py	Wed Jul 16 20:52:50 2008
@@ -120,7 +120,7 @@
                 if member != ',':
                     for change in MAPPING[mod_member.value]:
                         if member in change[1]:
-                            if mod_dict.has_key(change[0]):
+                            if change[0] in mod_dict:
                                 mod_dict[change[0]].append(member)
                             else:
                                 mod_dict[change[0]] = [member]


More information about the Python-3000-checkins mailing list