(self, i)
| 551 | |
| 552 | # Return a GET (BINGET, LONG_BINGET) opcode string, with argument i. |
| 553 | def get(self, i): |
| 554 | if self.bin: |
| 555 | if i < 256: |
| 556 | return BINGET + pack("<B", i) |
| 557 | else: |
| 558 | return LONG_BINGET + pack("<I", i) |
| 559 | |
| 560 | return GET + repr(i).encode("ascii") + b'\n' |
| 561 | |
| 562 | def save(self, obj, save_persistent_id=True): |
| 563 | self.framer.commit_frame() |
no test coverage detected