diff --git a/Lib/lib2to3/fixes/fix_urllib.py b/Lib/lib2to3/fixes/fix_urllib.py index 1255085a594..78bf7abc687 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]