[PATCH 1 of 9] atexit: add special-purpose atexit functionality to util

Bryan O'Sullivan bos at serpentine.com
Tue Apr 11 13:46:03 EDT 2017


On Tue, Apr 11, 2017 at 6:48 AM, Yuya Nishihara <yuya at tcha.org> wrote:

> Perhaps -1 (= 255) would be better since 1 generally means expected
> failure.
>

Sure.


> > +    finally:
> > +        if excinfo is not None:
> > +            raise excinfo[0], excinfo[1], excinfo[2]
>
> This breaks everything on Python 3. I generally don't want to reject
> patches
> because of Py3 breakage, but this is syntax error and wouldn't be trivially
> fixed in flight.
>

Wow, Python 3 never fails to under-deliver.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170411/3f5dcc67/attachment.html>


More information about the Mercurial-devel mailing list