Skip to content

Commit

Permalink
Implement "mode" for SubTextIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Aug 6, 2024
1 parent df64cb7 commit 7168919
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/multicsv/subtextio.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def __init__(self, base_io: TextIO, start: int, end: int):
self.length = len(self._buffer)
self._closed = False

@property
def mode(self) -> str:
return self.base_io.mode

def read(self, size: int = -1) -> str:
if self._closed:
raise ValueError("I/O operation on closed file.")
Expand Down

0 comments on commit 7168919

Please sign in to comment.