MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / empackage

Function empackage

sshuttle/ssh.py:24–30  ·  view source on GitHub ↗
(z, name, data=None)

Source from the content-addressed store, hash-verified

22
23
24def empackage(z, name, data=None):
25 if not data:
26 data = get_module_source(name)
27 content = z.compress(data)
28 content += z.flush(zlib.Z_SYNC_FLUSH)
29
30 return b'%s\n%d\n%s' % (name.encode("ASCII"), len(content), content)
31
32
33def parse_hostport(rhostport):

Callers 1

connectFunction · 0.85

Calls 2

get_module_sourceFunction · 0.85
flushMethod · 0.80

Tested by

no test coverage detected