[Python-3000-checkins] r66695 - python/branches/py3k/Modules/_stringio.c

Amaury Forgeot d'Arc amauryfa at gmail.com
Tue Sep 30 10:07:14 CEST 2008


Neal Norwitz wrote:
> > 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?

It's redundant here, but missing in another place, in stringio_read().

-- 
Amaury Forgeot d'Arc


More information about the Python-3000-checkins mailing list