diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-07-16 18:48:35 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-07-16 18:48:35 (GMT) |
commit | 1bbf4ea553a5089ec82377dd24531dd79e3357c6 (patch) | |
tree | 79ccb0ba7e2f7dc4ba1c3b0e6321b52a60e69ffc | |
parent | 4cb965ca91b472093562f6d9e197338ae2e9f642 (diff) | |
download | cpython-1bbf4ea553a5089ec82377dd24531dd79e3357c6.zip cpython-1bbf4ea553a5089ec82377dd24531dd79e3357c6.tar.gz cpython-1bbf4ea553a5089ec82377dd24531dd79e3357c6.tar.bz2 |
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
........
-rw-r--r-- | Lib/lib2to3/fixes/fix_urllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/fixes/fix_urllib.py b/Lib/lib2to3/fixes/fix_urllib.py index 1255085..78bf7ab 100644 --- a/Lib/lib2to3/fixes/fix_urllib.py +++ b/Lib/lib2to3/fixes/fix_urllib.py @@ -120,7 +120,7 @@ class FixUrllib(FixImports): 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] |