support python 3

svn: r21770
This commit is contained in:
Benny Malengier 2013-03-27 19:56:54 +00:00
parent 4c8d6a3215
commit 2f0cf7d5b6

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