Decode a single field from a pax record.
(self, value, encoding, fallback_encoding, fallback_errors)
| 1655 | self.pax_headers = pax_headers.copy() |
| 1656 | |
| 1657 | def _decode_pax_field(self, value, encoding, fallback_encoding, fallback_errors): |
| 1658 | """Decode a single field from a pax record. |
| 1659 | """ |
| 1660 | try: |
| 1661 | return value.decode(encoding, "strict") |
| 1662 | except UnicodeDecodeError: |
| 1663 | return value.decode(fallback_encoding, fallback_errors) |
| 1664 | |
| 1665 | def _block(self, count): |
| 1666 | """Round up a byte count by BLOCKSIZE and return it, |