Mercurial > p > roundup > code
view tools/base64 @ 8517:0e712d67a783
doc: fix typo and error in check command
change or -> for
In check command replace:
if user.organisation == issue.organisation:
return True
with
return user.organisation == issue.organisation
which returns a real False (not just a falsy None) and is more
pythonic than if X: return True, just return X if False is a valid
value.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 28 Jan 2026 15:21:02 -0500 |
| parents | c75defc1c2f0 |
| children | 9c3ec0a5c7fc |
line wrap: on
line source
#!/usr/bin/env python from __future__ import print_function import zlib, base64, sys print(base64.encodestring(zlib.compress(sys.stdin.read())))
