not x is None -> x is not None
This commit is contained in:
parent
de8d8370e3
commit
602ad1bc53
@ -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):
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user