diff Objects/namespaceobject.c @ 87083:28f71af02b69

Don't use deprecated function PyUnicode_GET_SIZE() Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
author Victor Stinner <victor.stinner@gmail.com>
date Wed, 13 Nov 2013 14:17:30 +0100
parents e7f6cef7a4cc
children
line wrap: on
line diff
--- a/Objects/namespaceobject.c	Wed Nov 13 13:29:37 2013 +0100
+++ b/Objects/namespaceobject.c	Wed Nov 13 14:17:30 2013 +0100
@@ -101,7 +101,7 @@
         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);