1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

python: Avoid PyDoc_STRVAR() macro which doesn't exist in Python2.2.

This commit is contained in:
Jelmer Vernooij 2008-01-13 03:32:44 +01:00
parent 1d703dcf3a
commit dec3f421be

View 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;
}