MCPcopy Create free account
hub / github.com/F-Stack/f-stack / open_input

Function open_input

dpdk/buildtools/pmdinfogen.py:224–229  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

222
223
224def open_input(path):
225 if path == "-":
226 temp = tempfile.TemporaryFile()
227 temp.write(sys.stdin.buffer.read())
228 return temp
229 return open(path, "rb")
230
231
232def read_input(path):

Callers 1

load_imageFunction · 0.70

Calls 2

writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected