| 2585 | # These next two classes encode the minimal API needed to save()/load() arrays. |
| 2586 | # The `test_ducktyping` ensures they work correctly |
| 2587 | class JustWriter: |
| 2588 | def __init__(self, base): |
| 2589 | self.base = base |
| 2590 | |
| 2591 | def write(self, s): |
| 2592 | return self.base.write(s) |
| 2593 | |
| 2594 | def flush(self): |
| 2595 | return self.base.flush() |
| 2596 | |
| 2597 | class JustReader: |
| 2598 | def __init__(self, base): |
no outgoing calls
searching dependent graphs…