diff options
Diffstat (limited to 'Lib/encodings/iconv_codec.py')
-rw-r--r-- | Lib/encodings/iconv_codec.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Lib/encodings/iconv_codec.py b/Lib/encodings/iconv_codec.py deleted file mode 100644 index 8bd0c3f..0000000 --- a/Lib/encodings/iconv_codec.py +++ /dev/null @@ -1,34 +0,0 @@ -""" Python 'iconv' Codec - - -Written by Hye-Shik Chang (perky@FreeBSD.org). - -Copyright(c) Python Software Foundation, All Rights Reserved. NO WARRANTY. - -""" - -import _iconv_codec -import codecs - -def lookup(enc): - class IconvCodec(_iconv_codec.iconvcodec, codecs.Codec): - encoding = enc - - try: - c = IconvCodec() - - class IconvStreamReader(IconvCodec, codecs.StreamReader): - __init__ = codecs.StreamReader.__init__ - class IconvStreamWriter(IconvCodec, codecs.StreamWriter): - __init__ = codecs.StreamWriter.__init__ - - return ( - c.encode, c.decode, - IconvStreamReader, IconvStreamWriter - ) - except ValueError: - return None - -codecs.register(lookup) - -# ex: ts=8 sts=4 et |