summaryrefslogtreecommitdiff
path: root/auth/credentials
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 /auth/credentials
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 'auth/credentials')
-rw-r--r--auth/credentials/pycredentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c
index 966c625a10e..1aef16a0145 100644
--- a/auth/credentials/pycredentials.c
+++ b/auth/credentials/pycredentials.c
@@ -41,7 +41,7 @@ static PyObject *PyString_FromStringOrNULL(const char *str)
{
if (str == NULL)
Py_RETURN_NONE;
- return PyStr_FromString(str);
+ return PyUnicode_FromString(str);
}
static PyObject *py_creds_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)