[Python-checkins] python/dist/src/Lib/encodings big5hkscs.py, NONE, 1.1 euc_jis_2004.py, NONE, 1.1 iso2022_jp_2004.py, NONE, 1.1 shift_jis_2004.py, NONE, 1.1 aliases.py, 1.24, 1.25 big5.py, 1.2, 1.3 cp932.py, 1.2, 1.3 cp949.py, 1.2, 1.3 cp950.py, 1.2, 1.3 euc_jisx0213.py, 1.2, 1.3 euc_jp.py, 1.2, 1.3 euc_kr.py, 1.2, 1.3 gb18030.py, 1.2, 1.3 gb2312.py, 1.2, 1.3 gbk.py, 1.2, 1.3 hz.py, 1.2, 1.3 iso2022_jp.py, 1.2, 1.3 iso2022_jp_1.py, 1.2, 1.3 iso2022_jp_2.py, 1.2, 1.3 iso2022_jp_3.py, 1.2, 1.3 iso2022_jp_ext.py, 1.2, 1.3 iso2022_kr.py, 1.2, 1.3 johab.py, 1.2, 1.3 shift_jis.py, 1.2, 1.3 shift_jisx0213.py, 1.2, 1.3

perky at users.sourceforge.net perky at users.sourceforge.net
Sun Jul 18 05:07:00 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/encodings
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9316/Lib/encodings

Modified Files:
	aliases.py big5.py cp932.py cp949.py cp950.py euc_jisx0213.py 
	euc_jp.py euc_kr.py gb18030.py gb2312.py gbk.py hz.py 
	iso2022_jp.py iso2022_jp_1.py iso2022_jp_2.py iso2022_jp_3.py 
	iso2022_jp_ext.py iso2022_kr.py johab.py shift_jis.py 
	shift_jisx0213.py 
Added Files:
	big5hkscs.py euc_jis_2004.py iso2022_jp_2004.py 
	shift_jis_2004.py 
Log Message:
Bring CJKCodecs 1.1 into trunk.  This completely reorganizes source
and installed layouts to make maintenance simple and easy.  And it
also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004
and iso2022-jp-2004.


--- NEW FILE: big5hkscs.py ---
#
# big5hkscs.py: Python Unicode Codec for BIG5HKSCS
#
# Written by Hye-Shik Chang <perky at FreeBSD.org>
# $CJKCodecs: big5hkscs.py,v 1.1 2004/06/29 05:14:27 perky Exp $
#

import _codecs_hk, codecs

codec = _codecs_hk.getcodec('big5hkscs')

class Codec(codecs.Codec):
    encode = codec.encode
    decode = codec.decode

class StreamReader(Codec, codecs.StreamReader):
    def __init__(self, stream, errors='strict'):
        codecs.StreamReader.__init__(self, stream, errors)
        __codec = codec.StreamReader(stream, errors)
        self.read = __codec.read
        self.readline = __codec.readline
        self.readlines = __codec.readlines
        self.reset = __codec.reset

class StreamWriter(Codec, codecs.StreamWriter):
    def __init__(self, stream, errors='strict'):
        codecs.StreamWriter.__init__(self, stream, errors)
        __codec = codec.StreamWriter(stream, errors)
        self.write = __codec.write
        self.writelines = __codec.writelines
        self.reset = __codec.reset

def getregentry():
    return (codec.encode, codec.decode, StreamReader, StreamWriter)

--- NEW FILE: euc_jis_2004.py ---
#
# euc_jis_2004.py: Python Unicode Codec for EUC_JIS_2004
#
# Written by Hye-Shik Chang <perky at FreeBSD.org>
# $CJKCodecs: euc_jis_2004.py,v 1.1 2004/07/07 16:18:25 perky Exp $
#

import _codecs_jp, codecs

codec = _codecs_jp.getcodec('euc_jis_2004')

class Codec(codecs.Codec):
    encode = codec.encode
    decode = codec.decode

class StreamReader(Codec, codecs.StreamReader):
    def __init__(self, stream, errors='strict'):
        codecs.StreamReader.__init__(self, stream, errors)
        __codec = codec.StreamReader(stream, errors)
        self.read = __codec.read
        self.readline = __codec.readline
        self.readlines = __codec.readlines
        self.reset = __codec.reset

class StreamWriter(Codec, codecs.StreamWriter):
    def __init__(self, stream, errors='strict'):
        codecs.StreamWriter.__init__(self, stream, errors)
        __codec = codec.StreamWriter(stream, errors)
        self.write = __codec.write
        self.writelines = __codec.writelines
        self.reset = __codec.reset

def getregentry():
    return (codec.encode, codec.decode, StreamReader, StreamWriter)

--- NEW FILE: iso2022_jp_2004.py ---
#
# iso2022_jp_2004.py: Python Unicode Codec for ISO2022_JP_2004
#
# Written by Hye-Shik Chang <perky at FreeBSD.org>
# $CJKCodecs: iso2022_jp_2004.py,v 1.1 2004/07/07 16:18:25 perky Exp $
#

import _codecs_iso2022, codecs

codec = _codecs_iso2022.getcodec('iso2022_jp_2004')

class Codec(codecs.Codec):
    encode = codec.encode
    decode = codec.decode

class StreamReader(Codec, codecs.StreamReader):
    def __init__(self, stream, errors='strict'):
        codecs.StreamReader.__init__(self, stream, errors)
        __codec = codec.StreamReader(stream, errors)
        self.read = __codec.read
        self.readline = __codec.readline
        self.readlines = __codec.readlines
        self.reset = __codec.reset

class StreamWriter(Codec, codecs.StreamWriter):
    def __init__(self, stream, errors='strict'):
        codecs.StreamWriter.__init__(self, stream, errors)
        __codec = codec.StreamWriter(stream, errors)
        self.write = __codec.write
        self.writelines = __codec.writelines
        self.reset = __codec.reset

def getregentry():
    return (codec.encode, codec.decode, StreamReader, StreamWriter)

--- NEW FILE: shift_jis_2004.py ---
#
# shift_jis_2004.py: Python Unicode Codec for SHIFT_JIS_2004
#
# Written by Hye-Shik Chang <perky at FreeBSD.org>
# $CJKCodecs: shift_jis_2004.py,v 1.1 2004/07/07 16:18:25 perky Exp $
#

import _codecs_jp, codecs

codec = _codecs_jp.getcodec('shift_jis_2004')

class Codec(codecs.Codec):
    encode = codec.encode
    decode = codec.decode

class StreamReader(Codec, codecs.StreamReader):
    def __init__(self, stream, errors='strict'):
        codecs.StreamReader.__init__(self, stream, errors)
        __codec = codec.StreamReader(stream, errors)
        self.read = __codec.read
        self.readline = __codec.readline
        self.readlines = __codec.readlines
        self.reset = __codec.reset

class StreamWriter(Codec, codecs.StreamWriter):
    def __init__(self, stream, errors='strict'):
        codecs.StreamWriter.__init__(self, stream, errors)
        __codec = codec.StreamWriter(stream, errors)
        self.write = __codec.write
        self.writelines = __codec.writelines
        self.reset = __codec.reset

def getregentry():
    return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: aliases.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/aliases.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** aliases.py	19 Mar 2004 08:06:01 -0000	1.24
--- aliases.py	18 Jul 2004 03:06:26 -0000	1.25
***************
*** 40,43 ****
--- 40,47 ----
      'csbig5'             : 'big5',
  
+     # big5hkscs codec
+     'big5_hkscs'         : 'big5hkscs',
+     'hkscs'              : 'big5hkscs',
+ 
      # bz2_codec codec
      'bz2'                : 'bz2_codec',
***************
*** 198,203 ****
      'ms950'              : 'cp950',
  
      # euc_jisx0213 codec
-     'jisx0213'           : 'euc_jisx0213',
      'eucjisx0213'        : 'euc_jisx0213',
  
--- 202,211 ----
      'ms950'              : 'cp950',
  
+     # euc_jis_2004 codec
+     'jisx0213'           : 'euc_jis_2004',
+     'eucjis2004'         : 'euc_jis_2004',
+     'euc_jis2004'        : 'euc_jis_2004',
+ 
      # euc_jisx0213 codec
      'eucjisx0213'        : 'euc_jisx0213',
  
***************
*** 255,258 ****
--- 263,270 ----
      'iso_2022_jp_2'      : 'iso2022_jp_2',
  
+     # iso2022_jp_2004 codec
+     'iso_2022_jp_2004'   : 'iso2022_jp_2004',
+     'iso2022jp_2004'     : 'iso2022_jp_2004',
+ 
      # iso2022_jp_3 codec
      'iso2022jp_3'        : 'iso2022_jp_3',
***************
*** 417,420 ****
--- 429,437 ----
      's_jis'              : 'shift_jis',
  
+     # shift_jis_2004 codec
+     'shiftjis2004'       : 'shift_jis_2004',
+     'sjis_2004'          : 'shift_jis_2004',
+     's_jis_2004'         : 'shift_jis_2004',
+ 
      # shift_jisx0213 codec
      'shiftjisx0213'      : 'shift_jisx0213',

Index: big5.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/big5.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** big5.py	7 Jul 2004 20:54:47 -0000	1.2
--- big5.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: big5.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_big5 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: big5.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_tw, codecs
! 
! codec = _codecs_tw.getcodec('big5')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: cp932.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp932.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cp932.py	7 Jul 2004 20:54:47 -0000	1.2
--- cp932.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: cp932.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_cp932 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: cp932.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_jp, codecs
! 
! codec = _codecs_jp.getcodec('cp932')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: cp949.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp949.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cp949.py	7 Jul 2004 20:54:47 -0000	1.2
--- cp949.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: cp949.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_cp949 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: cp949.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_kr, codecs
! 
! codec = _codecs_kr.getcodec('cp949')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: cp950.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp950.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cp950.py	7 Jul 2004 20:54:47 -0000	1.2
--- cp950.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: cp950.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_cp950 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: cp950.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_tw, codecs
! 
! codec = _codecs_tw.getcodec('cp950')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: euc_jisx0213.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/euc_jisx0213.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** euc_jisx0213.py	7 Jul 2004 20:54:47 -0000	1.2
--- euc_jisx0213.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: euc_jisx0213.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_euc_jisx0213 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: euc_jisx0213.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_jp, codecs
! 
! codec = _codecs_jp.getcodec('euc_jisx0213')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: euc_jp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/euc_jp.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** euc_jp.py	7 Jul 2004 20:54:47 -0000	1.2
--- euc_jp.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: euc_jp.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_euc_jp import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: euc_jp.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_jp, codecs
! 
! codec = _codecs_jp.getcodec('euc_jp')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: euc_kr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/euc_kr.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** euc_kr.py	7 Jul 2004 20:54:47 -0000	1.2
--- euc_kr.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: euc_kr.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_euc_kr import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: euc_kr.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_kr, codecs
! 
! codec = _codecs_kr.getcodec('euc_kr')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: gb18030.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/gb18030.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** gb18030.py	7 Jul 2004 20:54:47 -0000	1.2
--- gb18030.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: gb18030.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_gb18030 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: gb18030.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_cn, codecs
! 
! codec = _codecs_cn.getcodec('gb18030')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: gb2312.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/gb2312.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** gb2312.py	7 Jul 2004 20:54:47 -0000	1.2
--- gb2312.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: gb2312.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_gb2312 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: gb2312.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_cn, codecs
! 
! codec = _codecs_cn.getcodec('gb2312')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: gbk.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/gbk.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** gbk.py	7 Jul 2004 20:54:47 -0000	1.2
--- gbk.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: gbk.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_gbk import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: gbk.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_cn, codecs
! 
! codec = _codecs_cn.getcodec('gbk')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: hz.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/hz.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** hz.py	7 Jul 2004 20:54:47 -0000	1.2
--- hz.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: hz.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_hz import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: hz.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_cn, codecs
! 
! codec = _codecs_cn.getcodec('hz')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: iso2022_jp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso2022_jp.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** iso2022_jp.py	7 Jul 2004 20:54:47 -0000	1.2
--- iso2022_jp.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 1,11 ****
  #
! # iso2022_jp.py: Python Unicode Codec for ISO_2022_JP
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_iso2022_jp import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 1,12 ----
  #
! # iso2022_jp.py: Python Unicode Codec for ISO2022_JP
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp.py,v 1.2 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_iso2022, codecs
! 
! codec = _codecs_iso2022.getcodec('iso2022_jp')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: iso2022_jp_1.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso2022_jp_1.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** iso2022_jp_1.py	7 Jul 2004 20:54:47 -0000	1.2
--- iso2022_jp_1.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 1,11 ****
  #
! # iso2022_jp_1.py: Python Unicode Codec for ISO_2022_JP_1
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_1.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_iso2022_jp_1 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 1,12 ----
  #
! # iso2022_jp_1.py: Python Unicode Codec for ISO2022_JP_1
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_1.py,v 1.2 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_iso2022, codecs
! 
! codec = _codecs_iso2022.getcodec('iso2022_jp_1')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: iso2022_jp_2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso2022_jp_2.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** iso2022_jp_2.py	7 Jul 2004 20:54:47 -0000	1.2
--- iso2022_jp_2.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 1,11 ****
  #
! # iso2022_jp_2.py: Python Unicode Codec for ISO_2022_JP_2
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_2.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_iso2022_jp_2 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 1,12 ----
  #
! # iso2022_jp_2.py: Python Unicode Codec for ISO2022_JP_2
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_2.py,v 1.2 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_iso2022, codecs
! 
! codec = _codecs_iso2022.getcodec('iso2022_jp_2')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: iso2022_jp_3.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso2022_jp_3.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** iso2022_jp_3.py	7 Jul 2004 20:54:47 -0000	1.2
--- iso2022_jp_3.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 1,11 ****
  #
! # iso2022_jp_3.py: Python Unicode Codec for ISO_2022_JP_3
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_3.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_iso2022_jp_3 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 1,12 ----
  #
! # iso2022_jp_3.py: Python Unicode Codec for ISO2022_JP_3
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_3.py,v 1.2 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_iso2022, codecs
! 
! codec = _codecs_iso2022.getcodec('iso2022_jp_3')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: iso2022_jp_ext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso2022_jp_ext.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** iso2022_jp_ext.py	7 Jul 2004 20:54:47 -0000	1.2
--- iso2022_jp_ext.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 1,11 ****
  #
! # iso2022_jp_ext.py: Python Unicode Codec for ISO_2022_JP_EXT
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_ext.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_iso2022_jp_ext import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 1,12 ----
  #
! # iso2022_jp_ext.py: Python Unicode Codec for ISO2022_JP_EXT
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_jp_ext.py,v 1.2 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_iso2022, codecs
! 
! codec = _codecs_iso2022.getcodec('iso2022_jp_ext')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: iso2022_kr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso2022_kr.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** iso2022_kr.py	7 Jul 2004 20:54:47 -0000	1.2
--- iso2022_kr.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 1,11 ****
  #
! # iso2022_kr.py: Python Unicode Codec for ISO_2022_KR
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_kr.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_iso2022_kr import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 1,12 ----
  #
! # iso2022_kr.py: Python Unicode Codec for ISO2022_KR
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: iso2022_kr.py,v 1.2 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_iso2022, codecs
! 
! codec = _codecs_iso2022.getcodec('iso2022_kr')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: johab.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/johab.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** johab.py	7 Jul 2004 20:54:47 -0000	1.2
--- johab.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: johab.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_johab import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: johab.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_kr, codecs
! 
! codec = _codecs_kr.getcodec('johab')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: shift_jis.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/shift_jis.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** shift_jis.py	7 Jul 2004 20:54:47 -0000	1.2
--- shift_jis.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: shift_jis.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_shift_jis import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: shift_jis.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_jp, codecs
! 
! codec = _codecs_jp.getcodec('shift_jis')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)

Index: shift_jisx0213.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/shift_jisx0213.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** shift_jisx0213.py	7 Jul 2004 20:54:47 -0000	1.2
--- shift_jisx0213.py	18 Jul 2004 03:06:26 -0000	1.3
***************
*** 3,11 ****
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: shift_jisx0213.py,v 1.3 2004/01/17 11:26:10 perky Exp $
  #
  
! from _codecs_shift_jisx0213 import codec
! import codecs
  
  class Codec(codecs.Codec):
--- 3,12 ----
  #
  # Written by Hye-Shik Chang <perky at FreeBSD.org>
! # $CJKCodecs: shift_jisx0213.py,v 1.8 2004/06/28 18:16:03 perky Exp $
  #
  
! import _codecs_jp, codecs
! 
! codec = _codecs_jp.getcodec('shift_jisx0213')
  
  class Codec(codecs.Codec):
***************
*** 31,33 ****
  
  def getregentry():
!     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
--- 32,34 ----
  
  def getregentry():
!     return (codec.encode, codec.decode, StreamReader, StreamWriter)



More information about the Python-checkins mailing list