diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-06-07 10:39:11 +0200 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2019-06-24 17:24:27 +0000 |
commit | f498c819664e9df658651d39f616f5b4d62b4750 (patch) | |
tree | b4849a8c497c3b38027af5c444ea3828418f19a2 /source4/auth | |
parent | 559dd2d25a644239902753e842b808bac1a0b439 (diff) | |
download | samba-f498c819664e9df658651d39f616f5b4d62b4750.tar.gz |
py3: Remove PyStr_Check() 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/auth')
-rw-r--r-- | source4/auth/pyauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c index acda96612af..b4963e8eab6 100644 --- a/source4/auth/pyauth.c +++ b/source4/auth/pyauth.c @@ -301,7 +301,7 @@ static const char **PyList_AsStringList(TALLOC_CTX *mem_ctx, PyObject *list, const char *value; Py_ssize_t size; PyObject *item = PyList_GetItem(list, i); - if (!(PyStr_Check(item) || PyUnicode_Check(item))) { + if (!(PyUnicode_Check(item) || PyUnicode_Check(item))) { PyErr_Format(PyExc_TypeError, "%s should be strings", paramname); return NULL; } |