Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old style exception --> new style for Python 3 #1639

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Old style exception --> new style for Python 3 #1639

merged 1 commit into from
Dec 19, 2018

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Dec 14, 2018

Old style exceptions are syntax errors in Python 3 but new style exceptions work as expected in both Python 2 and Python 3. @rvagg Your review please?

Python 3 treats old style exceptions are syntax errors but new style exceptions work as expected in both Python 2 and Python 3.  @rvagg Your review please?
@rvagg
Copy link
Member

rvagg commented Dec 19, 2018

I'm really not the person that should be reviewing this, if it works on 2 & 3 then great, I guess. 👍

anyone else want to weigh in?

@cclauss
Copy link
Contributor Author

cclauss commented Dec 19, 2018

@Trott @richardlau @addaleax,@BridgeAR @thefourtheye Your reviews please.

Copy link

@thefourtheye thefourtheye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although the try...except could be removed in this particular case to get better stacktrace.

@Trott Trott merged commit 3f262f5 into nodejs:master Dec 19, 2018
@cclauss cclauss deleted the patch-1 branch December 19, 2018 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants