MCPcopy Index your code
hub / github.com/RustPython/RustPython / _decode_bytewise

Method _decode_bytewise

Lib/test/test_io.py:4306–4309  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

4304 if encoding is not None:
4305 encoder = codecs.getincrementalencoder(encoding)()
4306 def _decode_bytewise(s):
4307 # Decode one byte at a time
4308 for b in encoder.encode(s):
4309 result.append(decoder.decode(bytes([b])))
4310 else:
4311 encoder = None
4312 def _decode_bytewise(s):

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.45
appendMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected