1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-17 04:23:50 +03:00

py3: Remove PyStr_FromString() compatability macro

We no longer need Samba to be py2/py3 compatible so we choose to return to the standard
function names.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Andrew Bartlett
2019-06-07 10:45:52 +02:00
committed by Noel Power
parent f498c81966
commit 34f9a089d8
23 changed files with 125 additions and 132 deletions

View File

@@ -26,7 +26,7 @@
static bool PySys_PathPrepend(PyObject *list, const char *path)
{
bool ok;
PyObject *py_path = PyStr_FromString(path);
PyObject *py_path = PyUnicode_FromString(path);
if (py_path == NULL) {
return false;
}