summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/shift_jis.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/encodings/shift_jis.py')
-rw-r--r--Lib/encodings/shift_jis.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/encodings/shift_jis.py b/Lib/encodings/shift_jis.py
index d235c1e..ec5e517 100644
--- a/Lib/encodings/shift_jis.py
+++ b/Lib/encodings/shift_jis.py
@@ -2,11 +2,12 @@
# shift_jis.py: Python Unicode Codec for SHIFT_JIS
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
-# $CJKCodecs: shift_jis.py,v 1.3 2004/01/17 11:26:10 perky Exp $
+# $CJKCodecs: shift_jis.py,v 1.8 2004/06/28 18:16:03 perky Exp $
#
-from _codecs_shift_jis import codec
-import codecs
+import _codecs_jp, codecs
+
+codec = _codecs_jp.getcodec('shift_jis')
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)