Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/benoitc/gunicorn
/ data_source
Function
data_source
tests/t.py:15–21 ·
view source on GitHub ↗
(fname)
Source
from the content-addressed store, hash-verified
13
14
15
def
data_source(fname):
16
buf = io.BytesIO()
17
with
open(fname)
as
handle:
18
for
line in handle:
19
line = line.rstrip(
"\n"
).replace(
"\\r\\n"
,
"\r\n"
)
20
buf.write(line.encode(
'latin1'
))
21
return
buf
22
23
24
class
request:
Callers
1
run
Method · 0.85
Calls
2
encode
Method · 0.80
write
Method · 0.45
Tested by
no test coverage detected