Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../lib64/python3..../encoding...
File: iso2022_jp_2.py
#
[0] Fix | Delete
# iso2022_jp_2.py: Python Unicode Codec for ISO2022_JP_2
[1] Fix | Delete
#
[2] Fix | Delete
# Written by Hye-Shik Chang <perky@FreeBSD.org>
[3] Fix | Delete
#
[4] Fix | Delete
[5] Fix | Delete
import _codecs_iso2022, codecs
[6] Fix | Delete
import _multibytecodec as mbc
[7] Fix | Delete
[8] Fix | Delete
codec = _codecs_iso2022.getcodec('iso2022_jp_2')
[9] Fix | Delete
[10] Fix | Delete
class Codec(codecs.Codec):
[11] Fix | Delete
encode = codec.encode
[12] Fix | Delete
decode = codec.decode
[13] Fix | Delete
[14] Fix | Delete
class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
[15] Fix | Delete
codecs.IncrementalEncoder):
[16] Fix | Delete
codec = codec
[17] Fix | Delete
[18] Fix | Delete
class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
[19] Fix | Delete
codecs.IncrementalDecoder):
[20] Fix | Delete
codec = codec
[21] Fix | Delete
[22] Fix | Delete
class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
[23] Fix | Delete
codec = codec
[24] Fix | Delete
[25] Fix | Delete
class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
[26] Fix | Delete
codec = codec
[27] Fix | Delete
[28] Fix | Delete
def getregentry():
[29] Fix | Delete
return codecs.CodecInfo(
[30] Fix | Delete
name='iso2022_jp_2',
[31] Fix | Delete
encode=Codec().encode,
[32] Fix | Delete
decode=Codec().decode,
[33] Fix | Delete
incrementalencoder=IncrementalEncoder,
[34] Fix | Delete
incrementaldecoder=IncrementalDecoder,
[35] Fix | Delete
streamreader=StreamReader,
[36] Fix | Delete
streamwriter=StreamWriter,
[37] Fix | Delete
)
[38] Fix | Delete
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function