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

Method _decode_pax_field

Lib/tarfile.py:1638–1644  ·  view source on GitHub ↗

Decode a single field from a pax record.

(self, value, encoding, fallback_encoding, fallback_errors)

Source from the content-addressed store, hash-verified

1636 self.pax_headers = pax_headers.copy()
1637
1638 def _decode_pax_field(self, value, encoding, fallback_encoding, fallback_errors):
1639 """Decode a single field from a pax record.
1640 """
1641 try:
1642 return value.decode(encoding, "strict")
1643 except UnicodeDecodeError:
1644 return value.decode(fallback_encoding, fallback_errors)
1645
1646 def _block(self, count):
1647 """Round up a byte count by BLOCKSIZE and return it,

Callers 1

_proc_paxMethod · 0.95

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected