diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-09-01 00:45:28 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-09-01 00:45:28 (GMT) |
commit | 4ce69a5b06d230d513139ad0797bcc1b471f910c (patch) | |
tree | d808ae4884d4e0b5d2beefa09ec97193115bfea4 /Lib/encodings | |
parent | 6203196c7c0d9d93593919ecee2625af2db6bc2c (diff) | |
download | cpython-4ce69a5b06d230d513139ad0797bcc1b471f910c.zip cpython-4ce69a5b06d230d513139ad0797bcc1b471f910c.tar.gz cpython-4ce69a5b06d230d513139ad0797bcc1b471f910c.tar.bz2 |
No need to import exceptions, they are builtins
Diffstat (limited to 'Lib/encodings')
-rw-r--r-- | Lib/encodings/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py index d2e9523..8a50ac1 100644 --- a/Lib/encodings/__init__.py +++ b/Lib/encodings/__init__.py @@ -27,7 +27,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com). """#" -import codecs, exceptions, types, aliases +import codecs, types, aliases _cache = {} _unknown = '--unknown--' @@ -40,8 +40,7 @@ _norm_encoding_map = (' . ' ' ') _aliases = aliases.aliases -class CodecRegistryError(exceptions.LookupError, - exceptions.SystemError): +class CodecRegistryError(LookupError, SystemError): pass def normalize_encoding(encoding): |