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

Method _proc_gnusparse_01

Lib/tarfile.py:1593–1597  ·  view source on GitHub ↗

Process a GNU tar extended sparse header, version 0.1.

(self, next, pax_headers)

Source from the content-addressed store, hash-verified

1591 next.sparse = list(zip(offsets, numbytes))
1592
1593 def _proc_gnusparse_01(self, next, pax_headers):
1594 """Process a GNU tar extended sparse header, version 0.1.
1595 """
1596 sparse = [int(x) for x in pax_headers["GNU.sparse.map"].split(",")]
1597 next.sparse = list(zip(sparse[::2], sparse[1::2]))
1598
1599 def _proc_gnusparse_10(self, next, pax_headers, tarfile):
1600 """Process a GNU tar extended sparse header, version 1.0.

Callers 1

_proc_paxMethod · 0.95

Calls 2

listClass · 0.85
splitMethod · 0.45

Tested by

no test coverage detected