Code optimizations wrt handling of None - bug 2212

svn: r10811
This commit is contained in:
Gerald Britton
2008-06-16 15:01:46 +00:00
parent 47095b4e98
commit 4982292774
124 changed files with 379 additions and 377 deletions

View File

@@ -394,7 +394,7 @@ class ManagedWindow:
return id(obj)
def define_glade(self, top_module, glade_file=None):
if glade_file == None:
if glade_file is None:
glade_file = const.GLADE_FILE
self._gladeobj = glade.XML(glade_file, top_module, "gramps")
return self._gladeobj