(z, name, data=None)
| 22 | |
| 23 | |
| 24 | def 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 | |
| 33 | def parse_hostport(rhostport): |
no test coverage detected