not x is None -> x is not None

This commit is contained in:
Tom Samstag 2015-12-31 00:03:22 -08:00
parent de8d8370e3
commit 602ad1bc53
5 changed files with 5 additions and 5 deletions

View File

@ -295,7 +295,7 @@ class CallbackManager(object):
unconnect a signal from the database if it is already connected
"""
oldcall, oldconnectkey = self.__callbacks[signal]
if not oldconnectkey is None:
if oldconnectkey is not None:
self.database.disconnect(oldconnectkey)
def add_db_signal(self, name, callback):

View File

@ -581,7 +581,7 @@ class EmbeddedList(ButtonTab):
self.tree.set_model(self.model)
#reset previous select
if not selectedpath is None:
if selectedpath is not None:
self.selection.select_path(selectedpath)
#self.selection.select_path(node)
self._set_label()

View File

@ -413,5 +413,5 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
@type prebuildpath: tree path
"""
self.tree.expand_all()
if not prebuildpath is None:
if prebuildpath is not None:
self.selection.select_path(prebuildpath)

View File

@ -219,5 +219,5 @@ class NameEmbedList(GroupEmbeddedList):
@type prebuildpath: tree path
"""
self.tree.expand_all()
if not prebuildpath is None:
if prebuildpath is not None:
self.selection.select_path(prebuildpath)

View File

@ -234,7 +234,7 @@ class AllRelReport():
relation[4], relation[2],
only_birth = birth,
in_law_a = inlawa, in_law_b = inlawb)
if not skip_list_text is None:
if skip_list_text is not None:
if rel_str in skip_list_text:
skip_list.append(count)
else: