mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +03:00
python: Port simple libpython module to Python 3 compatible form
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
aa74d6edf5
commit
ba4cabb74f
@@ -18,13 +18,14 @@
|
||||
*/
|
||||
|
||||
#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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user