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/posixmodule.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/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index c0b30f9..d879837 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1417,7 +1417,7 @@ posix_execve(PyObject *self, PyObject *args) } argvlist[argc] = NULL; - i = PyMapping_Length(env); + i = PyMapping_Size(env); envlist = PyMem_NEW(char *, i + 1); if (envlist == NULL) { PyErr_NoMemory(); @@ -1610,7 +1610,7 @@ posix_spawnve(PyObject *self, PyObject *args) } argvlist[argc] = NULL; - i = PyMapping_Length(env); + i = PyMapping_Size(env); envlist = PyMem_NEW(char *, i + 1); if (envlist == NULL) { PyErr_NoMemory(); |