(self, i)
| 524 | |
| 525 | # Return a GET (BINGET, LONG_BINGET) opcode string, with argument i. |
| 526 | def get(self, i): |
| 527 | if self.bin: |
| 528 | if i < 256: |
| 529 | return BINGET + pack("<B", i) |
| 530 | else: |
| 531 | return LONG_BINGET + pack("<I", i) |
| 532 | |
| 533 | return GET + repr(i).encode("ascii") + b'\n' |
| 534 | |
| 535 | def save(self, obj, save_persistent_id=True): |
| 536 | self.framer.commit_frame() |
no test coverage detected