[Python-3000-checkins] r66695 - python/branches/py3k/Modules/_stringio.c
Neal Norwitz
nnorwitz at gmail.com
Tue Sep 30 05:48:58 CEST 2008
On Mon, Sep 29, 2008 at 7:22 PM, benjamin.peterson
<python-3000-checkins at python.org> wrote:
> Author: benjamin.peterson
> Date: Tue Sep 30 04:22:04 2008
> New Revision: 66695
>
> Log:
> check for errors after PyLong_Ssize_t
>
> patch from Victor Stinner #3977
> reviewed by Amaury
>
>
> Modified:
> python/branches/py3k/Modules/_stringio.c
>
> Modified: python/branches/py3k/Modules/_stringio.c
> ==============================================================================
> --- python/branches/py3k/Modules/_stringio.c (original)
> +++ python/branches/py3k/Modules/_stringio.c Tue Sep 30 04:22:04 2008
> @@ -177,6 +177,10 @@
>
> if (PyLong_Check(arg)) {
> size = PyLong_AsSsize_t(arg);
> + if (size == -1 && PyErr_Occurred())
> + return NULL;
> + if (size == -1 && PyErr_Occurred())
> + return NULL;
> }
That check is redundant, isn't that check?
n
More information about the Python-3000-checkins
mailing list