| 2652 | # These next two classes encode the minimal API needed to save()/load() arrays. |
| 2653 | # The `test_ducktyping` ensures they work correctly |
| 2654 | class JustWriter: |
| 2655 | def __init__(self, base): |
| 2656 | self.base = base |
| 2657 | |
| 2658 | def write(self, s): |
| 2659 | return self.base.write(s) |
| 2660 | |
| 2661 | def flush(self): |
| 2662 | return self.base.flush() |
| 2663 | |
| 2664 | class JustReader: |
| 2665 | def __init__(self, base): |
no outgoing calls