Read contents of self as text
(self, encoding: Optional[str] = None)
| 83 | return strm.read() |
| 84 | |
| 85 | def read_text(self, encoding: Optional[str] = None) -> str: |
| 86 | """ |
| 87 | Read contents of self as text |
| 88 | """ |
| 89 | with self.open(encoding=encoding) as strm: |
| 90 | return strm.read() |
| 91 | |
| 92 | @abc.abstractmethod |
| 93 | def is_dir(self) -> bool: |