summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-05-23 15:49:38 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-05-23 15:49:38 (GMT)
commitc9ca5c82f9fef808b28e923148c5f6459e529c9f (patch)
tree4f4f84acfbe60aa6d31dc72d11474a35b2e78009 /Modules
parent8ac1495a6a1d18111a626cec0c7f2eb67df3edb3 (diff)
downloadcpython-c9ca5c82f9fef808b28e923148c5f6459e529c9f.zip
cpython-c9ca5c82f9fef808b28e923148c5f6459e529c9f.tar.gz
cpython-c9ca5c82f9fef808b28e923148c5f6459e529c9f.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/xxmodule.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c
index c35d16e..b170651 100644
--- a/Modules/xxmodule.c
+++ b/Modules/xxmodule.c
@@ -5,7 +5,7 @@
occurrences of 'xx' should be changed to something reasonable for your
module. If your module is named foo your sourcefile should be named
foomodule.c.
-
+
You will probably want to delete all references to 'x_attr' and add
your own types of attributes instead. Maybe you want to name your
local variables other than 'self'. If your object type is needed in
@@ -161,12 +161,12 @@ static PyObject *
xx_new(PyObject *self, PyObject *args)
{
XxoObject *rv;
-
+
if (!PyArg_ParseTuple(args, ":new"))
return NULL;
rv = newXxoObject(args);
- if ( rv == NULL )
- return NULL;
+ if (rv == NULL)
+ return NULL;
return (PyObject *)rv;
}
@@ -176,17 +176,17 @@ static PyObject *
xx_bug(PyObject *self, PyObject *args)
{
PyObject *list, *item;
-
+
if (!PyArg_ParseTuple(args, "O:bug", &list))
return NULL;
-
+
item = PyList_GetItem(list, 0);
/* Py_INCREF(item); */
PyList_SetItem(list, 1, PyInt_FromLong(0L));
PyObject_Print(item, stdout, 0);
printf("\n");
/* Py_DECREF(item); */
-
+
Py_INCREF(Py_None);
return Py_None;
}