Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahupp/python-magic
/ magic_load
Function
magic_load
magic/__init__.py:331–332 ·
view source on GitHub ↗
(cookie, filename)
Source
from the content-addressed store, hash-verified
329
330
331
def
magic_load(cookie, filename):
332
return
_magic_load(cookie, coerce_filename(filename))
333
334
335
magic_setflags = libmagic.magic_setflags
Callers
1
__init__
Method · 0.85
Calls
1
coerce_filename
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…