aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/message.py
diff options
context:
space:
mode:
authorGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-04-30 19:12:36 +0200
committerGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-04-30 19:25:16 +0200
commit7f74a400d197dac5cdf36960f68f63ce3eeff486 (patch)
tree9dcedef71864d1bd683e3fda85ee13b80a2deed2 /bindings/python/notmuch/message.py
parent162687a99e412098729d639ed7bc27f01372cb84 (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 'bindings/python/notmuch/message.py')
0 files changed, 0 insertions, 0 deletions