Return the file descriptor for the underlying file.
(self)
| 132 | return 'wb' if self._mode == _MODE_WRITE else 'rb' |
| 133 | |
| 134 | def fileno(self): |
| 135 | """Return the file descriptor for the underlying file.""" |
| 136 | self._check_not_closed() |
| 137 | return self._fp.fileno() |
| 138 | |
| 139 | def seekable(self): |
| 140 | """Return whether the file supports seeking.""" |