Mercurial > p > roundup > code
view tools/base64 @ 5015:85484d35f1a2
issue2550811 20% fix: jinja2 template engine now has an example how to use non-ascii unicode contents with a custom filter ('|u').
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Wed, 06 Jan 2016 22:36:55 +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()))
