adprep: Add the LDF data needed to upgrade to 2012R2 schema
[metze/samba/wip.git] / python / modules.c
index 371f0d5a07acb27121c1b1c851cea9f42bb90d02..5db3dd348e2ca99b50ecacca8da28c9f71184b2b 100644 (file)
 */
 
 #include <Python.h>
+#include "py3compat.h"
 #include "includes.h"
 #include "python/modules.h"
 #include "dynconfig/dynconfig.h"
 
 static bool PySys_PathPrepend(PyObject *list, const char *path)
 {
-       PyObject *py_path = PyString_FromString(path);
+       PyObject *py_path = PyStr_FromString(path);
        if (py_path == NULL)
                return false;