Mercurial > p > roundup > code
view tools/base64 @ 4530:c1c395058dee
issue2550715: IndexError when requesting non-existing file via http.
Reported and fixed by Cédric Krier.
| author | Bernhard Reiter <Bernhard.Reiter@intevation.de> |
|---|---|
| date | Thu, 11 Aug 2011 19:21:26 +0000 |
| 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()))
