Conversation
Moved raise from inside try to try..else.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow these steps to help rectify the issue:
Thanks again to your contribution and we look forward to looking at it! |
|
Hi, @amosonn , to contribute you need to sign the CLA and it's appreciated for any bug/enhancement report to open an issue on http://bugs.python.org/ first. |
|
I agree this is a little clearer than the original, so I went ahead and merged it. There's no functional impact though, so I didn't worry about adding a NEWS entry. |
|
I'm backporting this into 3.5 and 3.6 to make the backport for #949 goes smoother. |
Automatically regenerate slp_exttype.h.
Automatically regenerate slp_exttype.h.
Moved raise from inside try to try..else.
The exception raised, in case the generator doesn't stop after
.raise, should be raised in an else block. This is a) more readable, b) saves the catching, checking and reraising of this exception.