summaryrefslogtreecommitdiff
path: root/Lib/encodings/iso2022_jp.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/encodings/iso2022_jp.py')
-rw-r--r--Lib/encodings/iso2022_jp.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/encodings/iso2022_jp.py b/Lib/encodings/iso2022_jp.py
index a23a13aa55..109658b830 100644
--- a/Lib/encodings/iso2022_jp.py
+++ b/Lib/encodings/iso2022_jp.py
@@ -1,12 +1,13 @@
#
-# iso2022_jp.py: Python Unicode Codec for ISO_2022_JP
+# iso2022_jp.py: Python Unicode Codec for ISO2022_JP
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
-# $CJKCodecs: iso2022_jp.py,v 1.3 2004/01/17 11:26:10 perky Exp $
+# $CJKCodecs: iso2022_jp.py,v 1.2 2004/06/28 18:16:03 perky Exp $
#
-from _codecs_iso2022_jp import codec
-import codecs
+import _codecs_iso2022, codecs
+
+codec = _codecs_iso2022.getcodec('iso2022_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)