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

Function encode_compressed

Lib/test/test_zoneinfo/data/update_test_data.py:86–93  ·  view source on GitHub ↗
(data: bytes)

Source from the content-addressed store, hash-verified

84
85
86def encode_compressed(data: bytes) -> typing.List[str]:
87 compressed_zone = lzma.compress(data)
88 raw = base64.b85encode(compressed_zone)
89
90 raw_data_str = raw.decode("utf-8")
91
92 data_str = textwrap.wrap(raw_data_str, width=70)
93 return data_str
94
95
96def load_compressed_keys() -> typing.Dict[str, typing.List[str]]:

Callers 1

load_compressed_keysFunction · 0.85

Calls 3

compressMethod · 0.45
decodeMethod · 0.45
wrapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…