[Python-checkins] r46420 - python/branches/sreifschneider-newnewexcept/Objects/exceptions.c

Richard Jones richard at commonground.com.au
Sat May 27 10:46:26 CEST 2006


On 26/05/2006, at 9:30 PM, tim.peters wrote:
> @@ -771,8 +771,8 @@
>      /* Set errno to the POSIX errno, and winerror to the Win32
>         error code. */
>      errcode = PyInt_AsLong(self->myerrno);
> -    if (!errcode == -1 && PyErr_Occurred())
> -        return NULL;
> +    if (errcode == -1 && PyErr_Occurred())
> +        goto failed;
>      posix_errno = winerror_to_errno(errcode);
>
>      self->winerror = self->myerrno;

I presume this was our "XXX undetected error"?


      Richard




More information about the Python-checkins mailing list