(self)
| 1329 | return value.decode(self.encoding, self.errors) |
| 1330 | |
| 1331 | def load_string(self): |
| 1332 | data = self.readline()[:-1] |
| 1333 | # Strip outermost quotes |
| 1334 | if len(data) >= 2 and data[0] == data[-1] and data[0] in b'"\'': |
| 1335 | data = data[1:-1] |
| 1336 | else: |
| 1337 | raise UnpicklingError("the STRING opcode argument must be quoted") |
| 1338 | self.append(self._decode_string(codecs.escape_decode(data)[0])) |
| 1339 | dispatch[STRING[0]] = load_string |
| 1340 | |
| 1341 | def load_binstring(self): |
nothing calls this directly
no test coverage detected