Start adapting to Python 4.0

This commit is contained in:
Tomeu Vizoso 2009-02-04 11:49:48 +01:00
parent e8c36247a5
commit 6084eb9fea

View File

@ -920,7 +920,7 @@ class Invoker(gobject.GObject):
def _ensure_palette_exists(self):
if self.parent and self.palette is None:
palette = self.parent.create_palette()
if palette:
if palette is not None:
self.palette = palette
def notify_mouse_enter(self):