Mercurial > p > roundup > code
view tools/base64 @ 5740:abbea26a11df
Clean up pylint reports of unused modules, duplicate imports, indent
issues, relative import, extra ';', unneeded pass.
Also added support for TypeError as I restructured accept header
parsing a bit to remove uneeded "version" variable assignments
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 28 May 2019 21:03:41 -0400 |
| parents | c75defc1c2f0 |
| children | 9c3ec0a5c7fc |
line wrap: on
line source
#!/usr/bin/env python from __future__ import print_function import zlib, base64, sys print(base64.encodestring(zlib.compress(sys.stdin.read())))
