diff options
Diffstat (limited to 'Lib/encodings/__init__.py')
-rw-r--r-- | Lib/encodings/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py index 1f469bf..b0ca364 100644 --- a/Lib/encodings/__init__.py +++ b/Lib/encodings/__init__.py @@ -144,7 +144,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 |