diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-13 14:17:30 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-13 14:17:30 +0100 |
commit | 59799a83995f135bdb1b1a0994052c1f24c68e83 (patch) | |
tree | df2516464ed158cd433f228c90b89c2baad00d4e /Objects/namespaceobject.c | |
parent | Issue #19437: Fix ctypes, handle PyCData_GetContainer() and GetKeepedObjects() (diff) | |
download | cpython-59799a83995f135bdb1b1a0994052c1f24c68e83.tar.gz cpython-59799a83995f135bdb1b1a0994052c1f24c68e83.tar.bz2 cpython-59799a83995f135bdb1b1a0994052c1f24c68e83.zip |
Don't use deprecated function PyUnicode_GET_SIZE()
Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
Diffstat (limited to 'Objects/namespaceobject.c')
-rw-r--r-- | Objects/namespaceobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/namespaceobject.c b/Objects/namespaceobject.c index 9e950946aad..720ac0d30fc 100644 --- a/Objects/namespaceobject.c +++ b/Objects/namespaceobject.c @@ -101,7 +101,7 @@ namespace_repr(PyObject *ns) goto error; while ((key = PyIter_Next(keys_iter)) != NULL) { - if (PyUnicode_Check(key) && PyUnicode_GET_SIZE(key) > 0) { + if (PyUnicode_Check(key) && PyUnicode_GET_LENGTH(key) > 0) { PyObject *value, *item; value = PyDict_GetItem(d, key); |