This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brandjon
Recipients brandjon, jnoller
Date 2012-01-25.17:25:47
SpamBayes Score 0.0032691825
Marked as misclassified No
Message-id <1327512348.28.0.497913714186.issue13854@psf.upfronthosting.co.za>
In-reply-to
Content
Also, as Brett pointed out to me in #13853, bool is a subclass of int, so they should follow the same code path. I suggest replacing

    elif type(e.args[0]) is int:
        exitcode = e.args[0]

with something like

    elif isinstance(e.args[0], int):
        exitcode = e.args[0]

which assumes that a subtype of int is convertible to int.
History
Date User Action Args
2012-01-25 17:25:48brandjonsetrecipients: + brandjon, jnoller
2012-01-25 17:25:48brandjonsetmessageid: <1327512348.28.0.497913714186.issue13854@psf.upfronthosting.co.za>
2012-01-25 17:25:47brandjonlinkissue13854 messages
2012-01-25 17:25:47brandjoncreate