(self)
| 1468 | return value.decode(self.encoding, self.errors) |
| 1469 | |
| 1470 | def load_string(self): |
| 1471 | data = self.readline()[:-1] |
| 1472 | # Strip outermost quotes |
| 1473 | if len(data) >= 2 and data[0] == data[-1] and data[0] in b'"\'': |
| 1474 | data = data[1:-1] |
| 1475 | else: |
| 1476 | raise UnpicklingError("the STRING opcode argument must be quoted") |
| 1477 | self.append(self._decode_string(codecs.escape_decode(data)[0])) |
| 1478 | dispatch[STRING[0]] = load_string |
| 1479 | |
| 1480 | def load_binstring(self): |
nothing calls this directly
no test coverage detected