diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-05-17 17:15:24 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-05-17 17:15:49 +0200 |
commit | 8dc8495010057202b725ac029831c03f4e3ab6bd (patch) | |
tree | 741919e07596d8515ff89edf3923950c451e6c22 /bindings/python/notmuch/message.py | |
parent | 05c3e83bd272635ecc5e86d767250de1eb680a09 (diff) |
python: Fix the remaining broken NULL pointer tests
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings/python/notmuch/message.py')
-rw-r--r-- | bindings/python/notmuch/message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index bdbe501..d7f029f 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -229,7 +229,7 @@ class Message(Python3StringMixIn): #Returns NULL if any error occurs. header = Message._get_header(self._msg, _str(header)) - if header == None: + if not header: raise NullPointerError() return header.decode('UTF-8', 'ignore') @@ -300,7 +300,7 @@ class Message(Python3StringMixIn): raise NotInitializedError() tags_p = Message._get_tags(self._msg) - if tags_p == None: + if not tags_p: raise NullPointerError() return Tags(tags_p, self) |