(self, i)
| 535 | |
| 536 | # Return a GET (BINGET, LONG_BINGET) opcode string, with argument i. |
| 537 | def get(self, i): |
| 538 | if self.bin: |
| 539 | if i < 256: |
| 540 | return BINGET + pack("<B", i) |
| 541 | else: |
| 542 | return LONG_BINGET + pack("<I", i) |
| 543 | |
| 544 | return GET + repr(i).encode("ascii") + b'\n' |
| 545 | |
| 546 | def save(self, obj, save_persistent_id=True): |
| 547 | self.framer.commit_frame() |
no test coverage detected