view tools/base64 @ 5309:20084e2b48c3

Fix bug where unsetting a text value triggered an exception because None has no replace operation.
author John Rouillard <rouilj@ieee.org>
date Wed, 25 Oct 2017 23:07:35 -0400
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()))

Roundup Issue Tracker: http://roundup-tracker.org/