Commit 45898dab authored by Barry Warsaw's avatar Barry Warsaw

Tabification changes only; the module was already newly named.

parent 74d7ae77
...@@ -145,8 +145,8 @@ op_getslice(s,a) ...@@ -145,8 +145,8 @@ op_getslice(s,a)
PyObject *a1; PyObject *a1;
long a2,a3; long a2,a3;
if(! PyArg_ParseTuple(a,"Oii",&a1,&a2,&a3)) return NULL; if (!PyArg_ParseTuple(a,"Oii",&a1,&a2,&a3))
return NULL;
return PySequence_GetSlice(a1,a2,a3); return PySequence_GetSlice(a1,a2,a3);
} }
...@@ -157,9 +157,11 @@ op_setslice(s,a) ...@@ -157,9 +157,11 @@ op_setslice(s,a)
PyObject *a1, *a4; PyObject *a1, *a4;
long a2,a3; long a2,a3;
if(! PyArg_ParseTuple(a,"OiiO",&a1,&a2,&a3,&a4)) return NULL; if (!PyArg_ParseTuple(a,"OiiO",&a1,&a2,&a3,&a4))
return NULL;
if(-1 == PySequence_SetSlice(a1,a2,a3,a4)) return NULL; if (-1 == PySequence_SetSlice(a1,a2,a3,a4))
return NULL;
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
...@@ -172,9 +174,11 @@ op_delslice(s,a) ...@@ -172,9 +174,11 @@ op_delslice(s,a)
PyObject *a1; PyObject *a1;
long a2,a3; long a2,a3;
if(! PyArg_ParseTuple(a,"Oii",&a1,&a2,&a3)) return NULL; if(! PyArg_ParseTuple(a,"Oii",&a1,&a2,&a3))
return NULL;
if(-1 == PySequence_DelSlice(a1,a2,a3)) return NULL; if (-1 == PySequence_DelSlice(a1,a2,a3))
return NULL;
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
...@@ -261,7 +265,8 @@ initoperator() ...@@ -261,7 +265,8 @@ initoperator()
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
PyDict_SetItemString(d, "__version__",PyString_FromString("$Rev$")); PyDict_SetItemString(d, "__version__",
PyString_FromString("$Rev$"));
/* Check for errors */ /* Check for errors */
if (PyErr_Occurred()) if (PyErr_Occurred())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment