MCPcopy Index your code
hub / github.com/ahupp/python-magic / open

Function open

magic/compat.py:232–237  ·  view source on GitHub ↗

Returns a magic object on success and None on failure. Flags argument as for setflags.

(flags)

Source from the content-addressed store, hash-verified

230
231
232def open(flags):
233 """
234 Returns a magic object on success and None on failure.
235 Flags argument as for setflags.
236 """
237 return Magic(_open(flags))
238
239
240# Objects used by `detect_from_` functions

Callers 5

test_detect_from_fobjMethod · 0.85
assert_valuesMethod · 0.85
test_name_countMethod · 0.85

Calls 1

MagicClass · 0.70

Tested by 5

test_detect_from_fobjMethod · 0.68
assert_valuesMethod · 0.68
test_name_countMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…