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

deps: python3 compat for inspector code generator #29346

Closed
wants to merge 1 commit into from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Aug 27, 2019

The code generator takes a dict and turns it into a namedtuple. The dict
contains the key "async", which is a keyword in Python >= 3.7, and rejected
by the namedtuple constructor. Rename it to "async_" to avoid the clash.

Fixes: #29326
This PR replicates the functionality of #29340 but modifies
deps/v8/third_party/inspector_protocol/code_generator.py instead of
tools/inspector_protocol/code_generator.py which actually solves
#29326 and allows Python 3.7 to perform similar to Python 3.6 in
Travis CI tests.

Given the completely derivative nature of this PR vs. #29340, I will happily
close this PR if #29340 is modified to make changes to the deps file instead
of the tools file.

@cclauss cclauss added the python PRs and issues that require attention from people who are familiar with Python. label Aug 27, 2019
@nodejs-github-bot nodejs-github-bot added tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency. labels Aug 27, 2019
@cclauss
Copy link
Contributor Author

cclauss commented Aug 27, 2019

@nodejs-github-bot
Copy link
Collaborator

@bnoordhuis
Copy link
Member

This change should also be made upstream

For the record: not also but first. :-)

@targos
Copy link
Member

targos commented Aug 29, 2019

The real upstream is here: https://chromium.googlesource.com/deps/inspector_protocol/

@cclauss
Copy link
Contributor Author

cclauss commented Aug 29, 2019

Closing in favor of #29340.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs and issues that require attention from people who are familiar with Python. tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'async' is a reserved word in Python >= 3.7
4 participants