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

Python code coverage for Lib/encodings/utf_32_le.py

#countcontent
1n/a"""
2n/aPython 'utf-32-le' Codec
3n/a"""
4n/aimport codecs
5n/a
6n/a### Codec APIs
7n/a
8n/aencode = codecs.utf_32_le_encode
9n/a
10n/adef decode(input, errors='strict'):
11n/a return codecs.utf_32_le_decode(input, errors, True)
12n/a
13n/aclass IncrementalEncoder(codecs.IncrementalEncoder):
14n/a def encode(self, input, final=False):
15n/a return codecs.utf_32_le_encode(input, self.errors)[0]
16n/a
17n/aclass IncrementalDecoder(codecs.BufferedIncrementalDecoder):
18n/a _buffer_decode = codecs.utf_32_le_decode
19n/a
20n/aclass StreamWriter(codecs.StreamWriter):
21n/a encode = codecs.utf_32_le_encode
22n/a
23n/aclass StreamReader(codecs.StreamReader):
24n/a decode = codecs.utf_32_le_decode
25n/a
26n/a### encodings module API
27n/a
28n/adef getregentry():
29n/a return codecs.CodecInfo(
30n/a name='utf-32-le',
31n/a encode=encode,
32n/a decode=decode,
33n/a incrementalencoder=IncrementalEncoder,
34n/a incrementaldecoder=IncrementalDecoder,
35n/a streamreader=StreamReader,
36n/a streamwriter=StreamWriter,
37n/a )