diff options
author | Johan Dahlin <zilch@src.gnome.org> | 2003-05-28 17:24:04 +0000 |
---|---|---|
committer | Johan Dahlin <zilch@src.gnome.org> | 2003-05-28 17:24:04 +0000 |
commit | 62a61be87571eb32a31e4aeebfd2ca1a5f503ed2 (patch) | |
tree | 270bd062b3ebc9edbaf90f5d3ff97bf05338c970 | |
parent | 607af7427414b2fb26e874a355e32b43d80d484a (diff) | |
download | pygobject-62a61be87571eb32a31e4aeebfd2ca1a5f503ed2.tar.gz |
Make the third argument optional. This broke distutils.
* codegen/defsparser.py (DefsParser.__init__): Make the third
argument optional. This broke distutils.
* gobjectmodule.c, pygtype.c, gtk/gtk.override,
gtk/pygtkcellrenderer.c, pygtktreemodel.c: Remove unnecessary
calls to PyErr_Clear. It's not needed right after a PyErr_Print.
-rw-r--r-- | gobject/gobjectmodule.c | 2 | ||||
-rw-r--r-- | gobject/pygtype.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 122efefa..41fd1b90 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -675,7 +675,6 @@ pyg_object_set_property (GObject *object, guint property_id, Py_DECREF(retval); } else { PyErr_Print(); - PyErr_Clear(); } Py_DECREF(object_wrapper); @@ -706,7 +705,6 @@ pyg_object_get_property (GObject *object, guint property_id, "O", py_pspec); if (retval == NULL || pyg_value_from_pyobject(value, retval) < 0) { PyErr_Print(); - PyErr_Clear(); } Py_DECREF(object_wrapper); Py_DECREF(py_pspec); diff --git a/gobject/pygtype.c b/gobject/pygtype.c index 173ab195..accee839 100644 --- a/gobject/pygtype.c +++ b/gobject/pygtype.c @@ -748,7 +748,6 @@ pyg_closure_marshal(GClosure *closure, ret = PyObject_CallObject(pc->callback, params); if (ret == NULL) { PyErr_Print(); - PyErr_Clear(); Py_DECREF(params); pyg_unblock_threads(); return; @@ -875,7 +874,6 @@ pyg_signal_class_closure_marshal(GClosure *closure, ret = PyObject_CallObject(method, params); if (ret == NULL) { PyErr_Print(); - PyErr_Clear(); Py_DECREF(method); Py_DECREF(params); pyg_unblock_threads(); |