Decode a single field from a pax record.
(self, value, encoding, fallback_encoding, fallback_errors)
| 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, |