diff options
Diffstat (limited to 'Lib/encodings/euc_jp.py')
-rw-r--r-- | Lib/encodings/euc_jp.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/encodings/euc_jp.py b/Lib/encodings/euc_jp.py index 77fe2b6..a3947a3 100644 --- a/Lib/encodings/euc_jp.py +++ b/Lib/encodings/euc_jp.py @@ -2,11 +2,12 @@ # euc_jp.py: Python Unicode Codec for EUC_JP # # Written by Hye-Shik Chang <perky@FreeBSD.org> -# $CJKCodecs: euc_jp.py,v 1.3 2004/01/17 11:26:10 perky Exp $ +# $CJKCodecs: euc_jp.py,v 1.8 2004/06/28 18:16:03 perky Exp $ # -from _codecs_euc_jp import codec -import codecs +import _codecs_jp, codecs + +codec = _codecs_jp.getcodec('euc_jp') class Codec(codecs.Codec): encode = codec.encode @@ -30,4 +31,4 @@ class StreamWriter(Codec, codecs.StreamWriter): self.reset = __codec.reset def getregentry(): - return (Codec().encode,Codec().decode,StreamReader,StreamWriter) + return (codec.encode, codec.decode, StreamReader, StreamWriter) |