diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-06-07 10:45:52 +0200 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2019-06-24 17:24:27 +0000 |
commit | 34f9a089d8d3a8971b2f7ee45f6d8e823a52a193 (patch) | |
tree | e82a39e5c36f4c9fc1ec7074f82ead6d9221315a /python/modules.c | |
parent | f498c819664e9df658651d39f616f5b4d62b4750 (diff) | |
download | samba-34f9a089d8d3a8971b2f7ee45f6d8e823a52a193.tar.gz |
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>
Diffstat (limited to 'python/modules.c')
-rw-r--r-- | python/modules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/modules.c b/python/modules.c index ae91b0939ae..d8b330b6b28 100644 --- a/python/modules.c +++ b/python/modules.c @@ -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; } |