mirror of https://github.com/python/cpython.git
Whitespace normalization.
This commit is contained in:
parent
8ac1495a6a
commit
c9ca5c82f9
|
@ -5,7 +5,7 @@
|
||||||
occurrences of 'xx' should be changed to something reasonable for your
|
occurrences of 'xx' should be changed to something reasonable for your
|
||||||
module. If your module is named foo your sourcefile should be named
|
module. If your module is named foo your sourcefile should be named
|
||||||
foomodule.c.
|
foomodule.c.
|
||||||
|
|
||||||
You will probably want to delete all references to 'x_attr' and add
|
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
|
your own types of attributes instead. Maybe you want to name your
|
||||||
local variables other than 'self'. If your object type is needed in
|
local variables other than 'self'. If your object type is needed in
|
||||||
|
@ -161,12 +161,12 @@ static PyObject *
|
||||||
xx_new(PyObject *self, PyObject *args)
|
xx_new(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
XxoObject *rv;
|
XxoObject *rv;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, ":new"))
|
if (!PyArg_ParseTuple(args, ":new"))
|
||||||
return NULL;
|
return NULL;
|
||||||
rv = newXxoObject(args);
|
rv = newXxoObject(args);
|
||||||
if ( rv == NULL )
|
if (rv == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
return (PyObject *)rv;
|
return (PyObject *)rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,17 +176,17 @@ static PyObject *
|
||||||
xx_bug(PyObject *self, PyObject *args)
|
xx_bug(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
PyObject *list, *item;
|
PyObject *list, *item;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "O:bug", &list))
|
if (!PyArg_ParseTuple(args, "O:bug", &list))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
item = PyList_GetItem(list, 0);
|
item = PyList_GetItem(list, 0);
|
||||||
/* Py_INCREF(item); */
|
/* Py_INCREF(item); */
|
||||||
PyList_SetItem(list, 1, PyInt_FromLong(0L));
|
PyList_SetItem(list, 1, PyInt_FromLong(0L));
|
||||||
PyObject_Print(item, stdout, 0);
|
PyObject_Print(item, stdout, 0);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
/* Py_DECREF(item); */
|
/* Py_DECREF(item); */
|
||||||
|
|
||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
return Py_None;
|
return Py_None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue