summaryrefslogtreecommitdiff
path: root/source4/lib/policy/pypolicy.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-06-07 10:45:52 +0200
committerNoel Power <npower@samba.org>2019-06-24 17:24:27 +0000
commit34f9a089d8d3a8971b2f7ee45f6d8e823a52a193 (patch)
treee82a39e5c36f4c9fc1ec7074f82ead6d9221315a /source4/lib/policy/pypolicy.c
parentf498c819664e9df658651d39f616f5b4d62b4750 (diff)
downloadsamba-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 'source4/lib/policy/pypolicy.c')
-rw-r--r--source4/lib/policy/pypolicy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/policy/pypolicy.c b/source4/lib/policy/pypolicy.c
index 0e8c89fd58b..038fa0428c3 100644
--- a/source4/lib/policy/pypolicy.c
+++ b/source4/lib/policy/pypolicy.c
@@ -53,7 +53,7 @@ static PyObject *py_get_gpo_flags(PyObject *self, PyObject *args)
py_ret = PyList_New(0);
for (i = 0; ret[i]; i++) {
int res = 0;
- PyObject *item = PyStr_FromString(ret[i]);
+ PyObject *item = PyUnicode_FromString(ret[i]);
if (item == NULL) {
talloc_free(mem_ctx);
Py_DECREF(py_ret);
@@ -102,7 +102,7 @@ static PyObject *py_get_gplink_options(PyObject *self, PyObject *args)
py_ret = PyList_New(0);
for (i = 0; ret[i]; i++) {
int res = 0;
- PyObject *item = PyStr_FromString(ret[i]);
+ PyObject *item = PyUnicode_FromString(ret[i]);
if (item == NULL) {
talloc_free(mem_ctx);
Py_DECREF(py_ret);