summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/encodings/__init__.py')
-rw-r--r--Lib/encodings/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py
index 7945530..b85ca82 100644
--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -147,7 +147,7 @@ def search_function(encoding):
pass
else:
for alias in codecaliases:
- if not _aliases.has_key(alias):
+ if alias not in _aliases:
_aliases[alias] = modname
# Return the registry entry