Skip to content

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

Merged
Trott merged 1 commit into
nodejs:masterfrom
cclauss:patch-1
Dec 19, 2018
Merged

Old style exception --> new style for Python 3#1639
Trott merged 1 commit into
nodejs:masterfrom
cclauss:patch-1

Conversation

@cclauss

@cclauss cclauss commented Dec 14, 2018

Copy link
Copy Markdown
Contributor

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

rvagg commented Dec 19, 2018

Copy link
Copy Markdown
Member

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

cclauss commented Dec 19, 2018

Copy link
Copy Markdown
Contributor Author

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

@thefourtheye thefourtheye left a comment

Copy link
Copy Markdown

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