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:
committed by
Noel Power
parent
f498c81966
commit
34f9a089d8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user