[Python-checkins] r65025 - sandbox/trunk/2to3/lib2to3/fixes/fix_urllib.py
benjamin.peterson
python-checkins at python.org
Wed Jul 16 20:46:31 CEST 2008
Author: benjamin.peterson
Date: Wed Jul 16 20:46:30 2008
New Revision: 65025
Log:
remove use of has_key
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 Jul 16 20:46:30 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-checkins
mailing list