True if file supports random-access.
(self)
| 1774 | super().close() |
| 1775 | |
| 1776 | def seekable(self): |
| 1777 | """True if file supports random-access.""" |
| 1778 | self._checkClosed() |
| 1779 | if self._seekable is None: |
| 1780 | try: |
| 1781 | self.tell() |
| 1782 | except OSError: |
| 1783 | self._seekable = False |
| 1784 | else: |
| 1785 | self._seekable = True |
| 1786 | return self._seekable |
| 1787 | |
| 1788 | def readable(self): |
| 1789 | """True if file was opened in a read mode.""" |
nothing calls this directly
no test coverage detected