summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-07-12 13:05:33 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-07-12 13:05:33 (GMT)
commit03657cfdb056dbd36db12cc3db12a6b58a962e20 (patch)
tree18dc8d472d1eba419c8d2a31847de5607f805a66 /Objects/listobject.c
parent6253f83b0a2d261024cd5ef84d2e36fe4f4f1f3d (diff)
downloadcpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.zip
cpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.tar.gz
cpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.tar.bz2
replace PyXXX_Length calls with PyXXX_Size calls
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 9c49dad..e85e2f4 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -563,7 +563,7 @@ listextend(PyListObject *self, PyObject *args)
if (!b)
return NULL;
- if (PyObject_Length(b) == 0)
+ if (PyObject_Size(b) == 0)
/* short circuit when b is empty */
goto ok;
@@ -585,7 +585,7 @@ listextend(PyListObject *self, PyObject *args)
}
}
- blen = PyObject_Length(b);
+ blen = PyObject_Size(b);
/* resize a using idiom */
items = self->ob_item;