MCPcopy Create free account
hub / github.com/ahupp/python-magic / error

Method error

magic/compat.py:163–168  ·  view source on GitHub ↗

Returns a textual explanation of the last error or None if there was no error.

(self)

Source from the content-addressed store, hash-verified

161 return Magic.__tostr(_buffer(self._magic_t, buf, len(buf)))
162
163 def error(self):
164 """
165 Returns a textual explanation of the last error or None
166 if there was no error.
167 """
168 return Magic.__tostr(_error(self._magic_t))
169
170 def setflags(self, flags):
171 """

Callers

nothing calls this directly

Calls 1

__tostrMethod · 0.80

Tested by

no test coverage detected