Mercurial > p > roundup > code
annotate tools/base64 @ 5373:faf3f01ef446
Run into a roadblock with trying to install python 3 compatible
xapian. Leaving my attempt in as commented out code for next person
to attempt.
Reinstaled the code that works with python 2 environment so
CI can be used for testing python 2 at least.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 20 Jul 2018 21:16:49 -0400 |
| parents | 740102dfad1d |
| children | c75defc1c2f0 |
| rev | line source |
|---|---|
|
2181
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 #!/usr/bin/env python |
|
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 import zlib, base64, sys |
|
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 print base64.encodestring(zlib.compress(sys.stdin.read())) |
