summaryrefslogtreecommitdiffstats
path: root/Objects/namespaceobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-13 13:17:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-11-13 13:17:30 (GMT)
commit59799a83995f135bdb1b1a0994052c1f24c68e83 (patch)
treedf2516464ed158cd433f228c90b89c2baad00d4e /Objects/namespaceobject.c
parente223439c130db50c2d636f433a3f1ff438b532db (diff)
downloadcpython-59799a83995f135bdb1b1a0994052c1f24c68e83.zip
cpython-59799a83995f135bdb1b1a0994052c1f24c68e83.tar.gz
cpython-59799a83995f135bdb1b1a0994052c1f24c68e83.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/namespaceobject.c b/Objects/namespaceobject.c
index 9e95094..720ac0d 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);