[Lxml-checkins] r39479 - lxml/pyrex/Pyrex/Compiler
scoder at codespeak.net
scoder at codespeak.net
Tue Feb 27 08:42:18 CET 2007
Author: scoder
Date: Tue Feb 27 08:42:14 2007
New Revision: 39479
Modified:
lxml/pyrex/Pyrex/Compiler/ModuleNode.py
Log:
cleanup
Modified: lxml/pyrex/Pyrex/Compiler/ModuleNode.py
==============================================================================
--- lxml/pyrex/Pyrex/Compiler/ModuleNode.py (original)
+++ lxml/pyrex/Pyrex/Compiler/ModuleNode.py Tue Feb 27 08:42:14 2007
@@ -1095,7 +1095,8 @@
static int
import_%(name)s(PyObject *module)
{
- if (module != NULL) {
+ if (module != NULL)
+ {
PyObject *c_api_init = PyObject_GetAttrString(
module, "_import_c_api");
if (!c_api_init)
@@ -1111,7 +1112,8 @@
int (*init)(struct {const char *s; const void **p;}*) =
PyCObject_AsVoidPtr(c_api_init);
Py_DECREF(c_api_init);
- if (!init) {
+ if (!init)
+ {
PyErr_SetString(PyExc_RuntimeError,
"%(name)s module returned NULL pointer for C-API init function");
return -1;
More information about the lxml-checkins
mailing list