]> git.cworth.org Git - obsolete/notmuch-old/blobdiff - bindings/python/notmuch/tag.py
python: fix NULL pointer tests
[obsolete/notmuch-old] / bindings / python / notmuch / tag.py
index 711bf5331bd386b1e654afa897f7c1d2efe66f20..e0598139a0d44f7499f4ebaf1d3f6fda3f0d41e2 100644 (file)
@@ -14,7 +14,7 @@ for more details.
 You should have received a copy of the GNU General Public License
 along with notmuch.  If not, see <http://www.gnu.org/licenses/>.
 
-Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>'
+Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>
 """
 from ctypes import c_char_p
 from notmuch.globals import (
@@ -137,5 +137,5 @@ class Tags(Python3StringMixIn):
 
     def __del__(self):
         """Close and free the notmuch tags"""
-        if self._tags is not None:
+        if self._tags:
             self._destroy(self._tags)