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

Method read_one

Lib/zipfile/__init__.py:209–215  ·  view source on GitHub ↗
(cls, raw)

Source from the content-addressed store, hash-verified

207
208 @classmethod
209 def read_one(cls, raw):
210 try:
211 xid, xlen = cls.FIELD_STRUCT.unpack(raw[:4])
212 except struct.error:
213 xid = None
214 xlen = 0
215 return cls(raw[:4+xlen], xid), raw[4+xlen:]
216
217 @classmethod
218 def split(cls, data):

Callers 1

splitMethod · 0.80

Calls 2

unpackMethod · 0.80
clsClass · 0.50

Tested by

no test coverage detected