Mercurial > p > roundup > code
view tools/base64 @ 2939:e8d22f8ff35a maint-0.7
determine user before context:
SendFile exception handler requires initialized userid attribute. (thanks alex)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 21 Nov 2004 21:52:34 +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()))
