python: Avoid PyDoc_STRVAR() macro which doesn't exist in Python2.2.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 13 Jan 2008 02:32:44 +0000 (03:32 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 13 Jan 2008 02:32:44 +0000 (03:32 +0100)
(This used to be commit dec3f421be5d7fd4ead3b71f8b69921c41bad39a)

source4/scripting/python/uuidmodule.c

index 02c929d4a54b261d7c1d61400a04dae9f465a9c5..9b952d31b9b1e7fa731dabc413c2a47cdb2bfcfb 100644 (file)
@@ -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;
 }