ยปCore Development>Code coverage>Lib/encodings/euc_jisx0213.py

Python code coverage for Lib/encodings/euc_jisx0213.py

#countcontent
1n/a#
2n/a# euc_jisx0213.py: Python Unicode Codec for EUC_JISX0213
3n/a#
4n/a# Written by Hye-Shik Chang <perky@FreeBSD.org>
5n/a#
6n/a
7n/aimport _codecs_jp, codecs
8n/aimport _multibytecodec as mbc
9n/a
10n/acodec = _codecs_jp.getcodec('euc_jisx0213')
11n/a
12n/aclass Codec(codecs.Codec):
13n/a encode = codec.encode
14n/a decode = codec.decode
15n/a
16n/aclass IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17n/a codecs.IncrementalEncoder):
18n/a codec = codec
19n/a
20n/aclass IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21n/a codecs.IncrementalDecoder):
22n/a codec = codec
23n/a
24n/aclass StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25n/a codec = codec
26n/a
27n/aclass StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28n/a codec = codec
29n/a
30n/adef getregentry():
31n/a return codecs.CodecInfo(
32n/a name='euc_jisx0213',
33n/a encode=Codec().encode,
34n/a decode=Codec().decode,
35n/a incrementalencoder=IncrementalEncoder,
36n/a incrementaldecoder=IncrementalDecoder,
37n/a streamreader=StreamReader,
38n/a streamwriter=StreamWriter,
39n/a )