Mercurial > p > roundup > code
view tools/base64 @ 5341:9af22cfa3a2b
local_replace: improve self-test.
* Add automatic counting of failed self-tests.
* Use print() statement as preparation for python3 move.
This can be done now that we require Python 2.7.
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Wed, 27 Jun 2018 15:52:22 +0200 |
| parents | 740102dfad1d |
| children | c75defc1c2f0 |
line wrap: on
line source
#!/usr/bin/env python import zlib, base64, sys print base64.encodestring(zlib.compress(sys.stdin.read()))
