pygobject r926 - in trunk: . glib
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r926 - in trunk: . glib
- Date: Wed, 6 Aug 2008 08:18:56 +0000 (UTC)
Author: johan
Date: Wed Aug 6 08:18:56 2008
New Revision: 926
URL: http://svn.gnome.org/viewvc/pygobject?rev=926&view=rev
Log:
2008-08-06 Johan Dahlin <johan gnome org>
* glib/pyglib.c (pyglib_init):
return in case of error instead of trying to access the internal
types.
Modified:
trunk/ChangeLog
trunk/glib/pyglib.c
Modified: trunk/glib/pyglib.c
==============================================================================
--- trunk/glib/pyglib.c (original)
+++ trunk/glib/pyglib.c Wed Aug 6 08:18:56 2008
@@ -63,9 +63,11 @@
"could not import glib (error was: %s)",
_PyUnicode_AsString(py_orig_exc));
Py_DECREF(py_orig_exc);
- } else
+ } else {
PyErr_SetString(PyExc_ImportError,
"could not import glib (no error given)");
+ }
+ return;
}
cobject = PyObject_GetAttrString(glib, "_PyGLib_API");
@@ -75,6 +77,7 @@
PyErr_SetString(PyExc_ImportError,
"could not import glib (could not find _PyGLib_API object)");
Py_DECREF(glib);
+ return;
}
_PyGMainContext_Type = (PyTypeObject*)PyObject_GetAttrString(glib, "MainContext");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]