(self)
| 1442 | return value.decode(self.encoding, self.errors) |
| 1443 | |
| 1444 | def load_string(self): |
| 1445 | data = self.readline()[:-1] |
| 1446 | # Strip outermost quotes |
| 1447 | if len(data) >= 2 and data[0] == data[-1] and data[0] in b'"\'': |
| 1448 | data = data[1:-1] |
| 1449 | else: |
| 1450 | raise UnpicklingError("the STRING opcode argument must be quoted") |
| 1451 | self.append(self._decode_string(codecs.escape_decode(data)[0])) |
| 1452 | dispatch[STRING[0]] = load_string |
| 1453 | |
| 1454 | def load_binstring(self): |
nothing calls this directly
no test coverage detected