Compress using deflate algorithm (without any headers)
(data)
| 46 | sys.exit() |
| 47 | |
| 48 | def deflate(data): |
| 49 | "Compress using deflate algorithm (without any headers)" |
| 50 | return zlib.compress(data, 9)[2:-4] |
| 51 | |
| 52 | def chunks(string, length): |
| 53 | "Produce string chunks" |