(self, value)
| 1459 | dispatch[BINFLOAT[0]] = load_binfloat |
| 1460 | |
| 1461 | def _decode_string(self, value): |
| 1462 | # Used to allow strings from Python 2 to be decoded either as |
| 1463 | # bytes or Unicode strings. This should be used only with the |
| 1464 | # STRING, BINSTRING and SHORT_BINSTRING opcodes. |
| 1465 | if self.encoding == "bytes": |
| 1466 | return value |
| 1467 | else: |
| 1468 | return value.decode(self.encoding, self.errors) |
| 1469 | |
| 1470 | def load_string(self): |
| 1471 | data = self.readline()[:-1] |
no test coverage detected