Commit 8caa2ec
authored
Add no-op
When the packed object are returned they still should support close() and flush(), because in aiida-core TextIOWrapper is used as a context manager, its __exit__ calls close(), which propagates to the underlying stream.
The methods are intentionally no-ops because these readers don't own the underlying file handles they read from.close() and flush() methods to PackedObjectReader, CallbackStreamWrapper, and ZlibLikeBaseStreamDecompresser (#205)1 parent e5cb644 commit 8caa2ec
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
551 | 557 | | |
552 | 558 | | |
553 | 559 | | |
| |||
683 | 689 | | |
684 | 690 | | |
685 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
686 | 698 | | |
687 | 699 | | |
688 | 700 | | |
| |||
834 | 846 | | |
835 | 847 | | |
836 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
837 | 855 | | |
838 | 856 | | |
839 | 857 | | |
| |||
0 commit comments