FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tools: fix Python 3 syntax error in mac_tool.py by cclauss · Pull Request #30146 · nodejs/node · GitHub

/ node Public

tools: fix Python 3 syntax error in mac_tool.py - #30146

Closed
cclauss wants to merge 1 commit into
nodejs:masterfrom
cclauss:fix-tools-mac_tool.py
Closed

tools: fix Python 3 syntax error in mac_tool.py#30146
cclauss wants to merge 1 commit into
nodejs:masterfrom
cclauss:fix-tools-mac_tool.py

Conversation

cclauss commented Oct 27, 2019

Copy link
Copy Markdown
Contributor

Discovered at #30129 (comment)
Confirmed in #30143

  File "./gyp-mac-tool", line 673
    max_value_length = len(max(filelist.items(), key=lambda (k,v):len(v))[1])
                                                            ^
SyntaxError: invalid syntax

https://portingguide.readthedocs.io/en/latest/syntax.html#tuple-unpacking-in-parameter-lists

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

nodejs-github-bot added build Issues and PRs related to build files or the CI. tools Issues and PRs related to the tools directory. labels Oct 27, 2019
cclauss added the python PRs and issues that require attention from people who are familiar with Python. label Oct 27, 2019

bnoordhuis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You're making several changes. Can you split them into separate commits?

cclauss requested a review from targos October 27, 2019 13:48

Copy link
Copy Markdown

I think this would still need a backport of nodejs/node-gyp@a48f09b#diff-a486ea7ed25fd07c6c5a3aee31ed8308 to make it fully compatible with Python 3.

cclauss commented Oct 27, 2019
edited
Loading

Copy link
Copy Markdown
Contributor Author

@chrmoritz nodejs/node-gyp#1937 contains those changes and was already merged.

You need to wait on the second gyp round trip which is blocked until nodejs/node-gyp#1935 lands and then is picked up by npm/cli and then reimported into nodejs/node /tools.

Vendoring in dependencies is awesome. NOT!!

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

cclauss added a commit that referenced this pull request Nov 1, 2019
PR-URL: #30146
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>

cclauss commented Nov 1, 2019

Copy link
Copy Markdown
Contributor Author

Landed in 9529c66

cclauss closed this Nov 1, 2019
cclauss deleted the fix-tools-mac_tool.py branch November 1, 2019 08:04
targos pushed a commit that referenced this pull request Nov 5, 2019
PR-URL: #30146
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
targos mentioned this pull request Nov 5, 2019
targos pushed a commit that referenced this pull request Nov 8, 2019
PR-URL: #30146
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
targos pushed a commit that referenced this pull request Nov 10, 2019
PR-URL: #30146
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
targos pushed a commit that referenced this pull request Nov 10, 2019
PR-URL: #30146
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
targos pushed a commit that referenced this pull request Nov 11, 2019
PR-URL: #30146
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. python PRs and issues that require attention from people who are familiar with Python. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL