Return the file descriptor for the underlying file.
(self)
| 169 | return 'wb' if self._mode == _MODE_WRITE else 'rb' |
| 170 | |
| 171 | def fileno(self): |
| 172 | """Return the file descriptor for the underlying file.""" |
| 173 | self._check_not_closed() |
| 174 | return self._fp.fileno() |
| 175 | |
| 176 | def seekable(self): |
| 177 | """Return whether the file supports seeking.""" |