]> granicus.if.org Git - python/commitdiff
two missing PyDoc_STR().
authorArmin Rigo <arigo@tunes.org>
Thu, 29 Dec 2005 14:39:28 +0000 (14:39 +0000)
committerArmin Rigo <arigo@tunes.org>
Thu, 29 Dec 2005 14:39:28 +0000 (14:39 +0000)
Modules/operator.c

index 4e1e517f6d25097ce5ff4b995be226adbc161e1a..3223ce324e5f62efc93f0160d61fb760c5d7d026 100644 (file)
@@ -177,10 +177,10 @@ op_delslice(PyObject *s, PyObject *a)
 #undef spam1o
 #undef spam1o
 #define spam1(OP,DOC) {#OP, OP, METH_VARARGS, PyDoc_STR(DOC)},
-#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, DOC}, \
+#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, PyDoc_STR(DOC)}, \
                           {#ALTOP, op_##OP, METH_VARARGS, PyDoc_STR(DOC)}, 
 #define spam1o(OP,DOC) {#OP, OP, METH_O, PyDoc_STR(DOC)},
-#define spam2o(OP,ALTOP,DOC) {#OP, op_##OP, METH_O, DOC}, \
+#define spam2o(OP,ALTOP,DOC) {#OP, op_##OP, METH_O, PyDoc_STR(DOC)}, \
                           {#ALTOP, op_##OP, METH_O, PyDoc_STR(DOC)}, 
 
 static struct PyMethodDef operator_methods[] = {