Message151951
| 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:48 | brandjon | set | recipients:
+ brandjon, jnoller |
| 2012年01月25日 17:25:48 | brandjon | set | messageid: <1327512348.28.0.497913714186.issue13854@psf.upfronthosting.co.za> |
| 2012年01月25日 17:25:47 | brandjon | link | issue13854 messages |
| 2012年01月25日 17:25:47 | brandjon | create |
|