MCPcopy
hub / github.com/benoitc/gunicorn / __init__

Method __init__

tests/t.py:38–43  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

36class FakeSocket:
37
38 def __init__(self, data):
39 self.tmp = tempfile.TemporaryFile()
40 if data:
41 self.tmp.write(data.getvalue())
42 self.tmp.flush()
43 self.tmp.seek(0)
44
45 def fileno(self):
46 return self.tmp.fileno()

Callers

nothing calls this directly

Calls 2

seekMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected