Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
tools: make mkssldef.py Python 3 compatible#25584
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
tools: make mkssldef.py Python 3 compatible #25584
Uh oh!
There was an error while loading. Please reload this page.
Conversation
This patch replaces the usage of `map` in such a way that it will be compatible with Python 3.
nodejs-github-bot commented Jan 19, 2019
bnoordhuis left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment but LGTM either way.
tools/mkssldef.py Outdated
| forlineinopen(filename).readlines(): | ||
| name, _, _, meta, _=re.split('\s+', line) | ||
| ifany(map(lambdap: p.match(name), excludes)): continue | ||
| ifany([p.match(name)forpinexcludes]): continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need the square brackets here, any() accepts a generator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to a generator now.
addaleax commented Jan 27, 2019
danbev commented Jan 28, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Re-run of failing node-test-commit-windows-fanned ✔️ |
danbev commented Jan 28, 2019
Landed in 4814987. |
This patch replaces the usage of `map` in such a way that it will be compatible with Python 3. PR-URL: #25584 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This patch replaces the usage of `map` in such a way that it will be compatible with Python 3. PR-URL: #25584 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This patch replaces the usage of `map` in such a way that it will be compatible with Python 3. PR-URL: #25584 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This patch replaces the usage of `map` in such a way that it will be compatible with Python 3. PR-URL: #25584 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This patch replaces the usage of `map` in such a way that it will be compatible with Python 3. PR-URL: #25584 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This patch replaces the usage of
mapin such a way that it will becompatible with Python 3.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passescc @nodejs/python @cclauss