From 34f9a089d8d3a8971b2f7ee45f6d8e823a52a193 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 7 Jun 2019 10:45:52 +0200 Subject: 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 Reviewed-by: Noel Power --- auth/credentials/pycredentials.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth') 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) -- cgit v1.2.1