Returns a textual description of the contents of the argument passed as a file descriptor or None if an error occurred and the MAGIC_ERROR flag is set. A call to errno() will return the numeric error code.
(self, fd)
| 145 | return Magic.__tostr(_file(self._magic_t, Magic.__tobytes(filename))) |
| 146 | |
| 147 | def descriptor(self, fd): |
| 148 | """ |
| 149 | Returns a textual description of the contents of the argument passed |
| 150 | as a file descriptor or None if an error occurred and the MAGIC_ERROR |
| 151 | flag is set. A call to errno() will return the numeric error code. |
| 152 | """ |
| 153 | return Magic.__tostr(_descriptor(self._magic_t, fd)) |
| 154 | |
| 155 | def buffer(self, buf): |
| 156 | """ |
no test coverage detected