diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-13 03:32:44 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-13 03:32:44 +0100 |
commit | 53c33aa2b42732304f247798a4dbe3bcae14e407 (patch) | |
tree | 0bf05447816537469ac24bfc092fb0ab1e8c94a5 /source4/scripting | |
parent | 95f83d904040a3d55abfb9fa080aede269663227 (diff) | |
download | samba-53c33aa2b42732304f247798a4dbe3bcae14e407.tar.gz samba-53c33aa2b42732304f247798a4dbe3bcae14e407.tar.bz2 samba-53c33aa2b42732304f247798a4dbe3bcae14e407.zip |
python: Avoid PyDoc_STRVAR() macro which doesn't exist in Python2.2.
(This used to be commit dec3f421be5d7fd4ead3b71f8b69921c41bad39a)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/uuidmodule.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/scripting/python/uuidmodule.c b/source4/scripting/python/uuidmodule.c index 02c929d4a5..9b952d31b9 100644 --- a/source4/scripting/python/uuidmodule.c +++ b/source4/scripting/python/uuidmodule.c @@ -18,7 +18,7 @@ */ #include "includes.h" -#include "Python.h" +#include <Python.h> #include "librpc/ndr/libndr.h" static PyObject *uuid_random(PyObject *self, PyObject *args) @@ -47,11 +47,9 @@ static PyMethodDef methods[] = { { NULL, NULL } }; -PyDoc_STRVAR(param_doc, "UUID helper routines"); - PyMODINIT_FUNC inituuid(void) { - PyObject *mod = Py_InitModule3((char *)"uuid", methods, param_doc); + PyObject *mod = Py_InitModule3((char *)"uuid", methods, "UUID helper routines"); if (mod == NULL) return; } |