Mercurial > p > roundup > code
view tools/base64 @ 4976:b198e50dc7dc
issued2550877 fixed, the tests adapted to the more precise header comparison. Added a hint to the code how headers are handled.
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Thu, 12 Mar 2015 22:11:20 +0100 |
| 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()))
