Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
224
def
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
232
def
read_input(path):
Callers
1
load_image
Function · 0.70
Calls
2
write
Method · 0.45
read
Method · 0.45
Tested by
no test coverage detected