MCPcopy Index your code
hub / github.com/python/cpython / _decode_text

Method _decode_text

Lib/test/test_zoneinfo/test_zoneinfo.py:2198–2202  ·  view source on GitHub ↗
(self, contents)

Source from the content-addressed store, hash-verified

2196 f.write(data)
2197
2198 def _decode_text(self, contents):
2199 raw_data = b"".join(map(str.encode, contents))
2200 decoded = base64.b85decode(raw_data)
2201
2202 return lzma.decompress(decoded)
2203
2204 def _convert_to_v1(self, contents):
2205 assert contents[0:4] == b"TZif", "Invalid TZif data found!"

Callers 1

_populate_tzpathMethod · 0.95

Calls 2

decompressMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected