MCPcopy
hub / github.com/corpnewt/GenSMBIOS / _is_binary

Function _is_binary

Scripts/plist.py:44–49  ·  view source on GitHub ↗
(fp)

Source from the content-addressed store, hash-verified

42 return sys.version_info >= (3, 0)
43
44def _is_binary(fp):
45 if isinstance(fp, basestring):
46 return fp.startswith(b"bplist00")
47 header = fp.read(32)
48 fp.seek(0)
49 return header[:8] == b'bplist00'
50
51def _seek_past_whitespace(fp):
52 offset = 0

Callers 1

loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected