support python 3

svn: r21769
This commit is contained in:
Benny Malengier 2013-03-27 19:56:43 +00:00
parent dee6a9b829
commit e670f27f3c

View File

@ -829,7 +829,7 @@ class TreeBaseModel(GObject.Object, Gtk.TreeModel):
:type path: Node
"""
if node is None:
raise Exception, 'Not allowed to add None as node'
raise Exception('Not allowed to add None as node')
iter = self._new_iter(id(node))
return iter