the current position of the file The initial position may not be 0 if the underlying input file supports tell and it not at position 0.
(self)
| 38 | self.at_beginning = 1 |
| 39 | |
| 40 | def tell(self): |
| 41 | """the current position of the file |
| 42 | |
| 43 | The initial position may not be 0 if the underlying input |
| 44 | file supports tell and it not at position 0. |
| 45 | """ |
| 46 | if not self.at_beginning: |
| 47 | raise TypeError("ReseekFile cannot tell except at the beginning of file") |
| 48 | return self.beginning |
| 49 | |
| 50 | def _read(self, size): |
| 51 | if size < 0: |
no outgoing calls
no test coverage detected