diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-04-30 19:12:36 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-04-30 19:25:16 +0200 |
commit | 7f74a400d197dac5cdf36960f68f63ce3eeff486 (patch) | |
tree | 9dcedef71864d1bd683e3fda85ee13b80a2deed2 /debian/compat | |
parent | 162687a99e412098729d639ed7bc27f01372cb84 (diff) |
python: cleanup the __nonzero__ implementations
Cleanup the code, reword the docstring and use the same implementation
in the Threads, Tags and Messages classes.
__nonzero__ implements truth value testing. If __nonzero__ is not
implemented, the python runtime would fall back to `len(..) > 0` thus
exhausting the iterator.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'debian/compat')
0 files changed, 0 insertions, 0 deletions