Must be called to load entries in the colon separated list of database files passed as argument or the default database file if no argument before any magic queries can be performed. Returns 0 on success and -1 on failure.
(self, filename=None)
| 179 | return _setflags(self._magic_t, flags) |
| 180 | |
| 181 | def load(self, filename=None): |
| 182 | """ |
| 183 | Must be called to load entries in the colon separated list of database |
| 184 | files passed as argument or the default database file if no argument |
| 185 | before any magic queries can be performed. |
| 186 | |
| 187 | Returns 0 on success and -1 on failure. |
| 188 | """ |
| 189 | return _load(self._magic_t, Magic.__tobytes(filename)) |
| 190 | |
| 191 | def compile(self, dbs): |
| 192 | """ |