[pygobject] [gi] get rid of some debug prints and fix error messages
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gi] get rid of some debug prints and fix error messages
- Date: Wed, 8 Dec 2010 21:41:16 +0000 (UTC)
commit de682b2d36c362140ab7d43c0743b01ec0865a74
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Dec 8 16:39:27 2010 -0500
[gi] get rid of some debug prints and fix error messages
gi/overrides/Gtk.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 784634d..7d594fa 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -687,14 +687,14 @@ class TreeModel(Gtk.TreeModel):
if isinstance(value, unicode):
value = unicode(value)
else:
- raise ValueError('Expected string or unicode for row %i but got %s' % i, type(value))
+ raise ValueError('Expected string or unicode for row %i but got %s%s' % (i, value, type(value)))
else:
- raise ValueError('Expected a string for row %i but got %s' % i, type(value))
+ raise ValueError('Expected a string for row %i but got %s' % (i, type(value)))
elif type_ == gobject.TYPE_FLOAT or type_ == gobject.TYPE_DOUBLE:
if isinstance(value, float):
value = float(value)
else:
- raise ValueError('Expected a float for row %i but got %s' % i, type(value))
+ raise ValueError('Expected a float for row %i but got %s' % (i, type(value)))
elif type_ == gobject.TYPE_LONG or type_ == gobject.TYPE_INT:
if isinstance(value, int):
value = int(value)
@@ -970,7 +970,6 @@ class TreeView(Gtk.TreeView, Container):
for t in targets:
entry = Gtk.TargetEntry.new(*t)
target_entries.append(entry)
- print(entry.target, entry.flags, entry.info)
return target_entries
def enable_model_drag_source(self, start_button_mask, targets, actions):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]