summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <zilch@src.gnome.org>2003-05-28 17:24:04 +0000
committerJohan Dahlin <zilch@src.gnome.org>2003-05-28 17:24:04 +0000
commit62a61be87571eb32a31e4aeebfd2ca1a5f503ed2 (patch)
tree270bd062b3ebc9edbaf90f5d3ff97bf05338c970
parent607af7427414b2fb26e874a355e32b43d80d484a (diff)
downloadpygobject-62a61be87571eb32a31e4aeebfd2ca1a5f503ed2.tar.gz
pygobject-62a61be87571eb32a31e4aeebfd2ca1a5f503ed2.tar.xz
pygobject-62a61be87571eb32a31e4aeebfd2ca1a5f503ed2.zip
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.c2
-rw-r--r--gobject/pygtype.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 122efef..41fd1b9 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 173ab19..accee83 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();