Mercurial > p > roundup > code
view tools/base64 @ 6042:d09a1d6a3bd9
flake8 whitespace fixes; add version_check
import version_check to make sure we are running with version > 2.7 python.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 07 Jan 2020 21:37:48 -0500 |
| 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())))
