From 602ad1bc530b58970e82214755b527805300545a Mon Sep 17 00:00:00 2001 From: Tom Samstag Date: Thu, 31 Dec 2015 00:03:22 -0800 Subject: [PATCH] not x is None -> x is not None --- gramps/gen/utils/callman.py | 2 +- gramps/gui/editors/displaytabs/embeddedlist.py | 2 +- gramps/gui/editors/displaytabs/eventembedlist.py | 2 +- gramps/gui/editors/displaytabs/nameembedlist.py | 2 +- gramps/plugins/quickview/all_relations.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gramps/gen/utils/callman.py b/gramps/gen/utils/callman.py index e021854f6..aca693047 100644 --- a/gramps/gen/utils/callman.py +++ b/gramps/gen/utils/callman.py @@ -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): diff --git a/gramps/gui/editors/displaytabs/embeddedlist.py b/gramps/gui/editors/displaytabs/embeddedlist.py index 83ba21c22..86d0ead2c 100644 --- a/gramps/gui/editors/displaytabs/embeddedlist.py +++ b/gramps/gui/editors/displaytabs/embeddedlist.py @@ -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() diff --git a/gramps/gui/editors/displaytabs/eventembedlist.py b/gramps/gui/editors/displaytabs/eventembedlist.py index 9a7dc90f3..fb6c6c828 100644 --- a/gramps/gui/editors/displaytabs/eventembedlist.py +++ b/gramps/gui/editors/displaytabs/eventembedlist.py @@ -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) diff --git a/gramps/gui/editors/displaytabs/nameembedlist.py b/gramps/gui/editors/displaytabs/nameembedlist.py index d919ea22b..bc6947520 100644 --- a/gramps/gui/editors/displaytabs/nameembedlist.py +++ b/gramps/gui/editors/displaytabs/nameembedlist.py @@ -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) diff --git a/gramps/plugins/quickview/all_relations.py b/gramps/plugins/quickview/all_relations.py index ab44b9f17..99654163d 100644 --- a/gramps/plugins/quickview/all_relations.py +++ b/gramps/plugins/quickview/all_relations.py @@ -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: