diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-12 13:05:33 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-12 13:05:33 (GMT) |
commit | 03657cfdb056dbd36db12cc3db12a6b58a962e20 (patch) | |
tree | 18dc8d472d1eba419c8d2a31847de5607f805a66 /Modules/cPickle.c | |
parent | 6253f83b0a2d261024cd5ef84d2e36fe4f4f1f3d (diff) | |
download | cpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.zip cpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.tar.gz cpython-03657cfdb056dbd36db12cc3db12a6b58a962e20.tar.bz2 |
replace PyXXX_Length calls with PyXXX_Size calls
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r-- | Modules/cPickle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index f9ef78f..52b3a1f 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -1466,7 +1466,7 @@ save_inst(Picklerobject *self, PyObject *args) { PyObject_CallObject(getinitargs_func, empty_tuple)) goto finally; - if ((len = PyObject_Length(class_args)) < 0) + if ((len = PyObject_Size(class_args)) < 0) goto finally; for (i = 0; i < len; i++) { @@ -2874,7 +2874,7 @@ Instance_New(PyObject *cls, PyObject *args) { if (PyClass_Check(cls)) { int l; - if ((l=PyObject_Length(args)) < 0) goto err; + if ((l=PyObject_Size(args)) < 0) goto err; UNLESS (l) { PyObject *__getinitargs__; |