-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
tools: make mkssldef.py Python 3 compatible #25584
Conversation
This patch replaces the usage of `map` in such a way that it will be compatible with Python 3.
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
exported = [] | ||
|
||
for filename in filenames: | ||
for line in open(filename).readlines(): | ||
name, _, _, meta, _ = re.split('\s+', line) | ||
if any(map(lambda p: p.match(name), excludes)): continue | ||
if any([p.match(name) for p in excludes]): 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.
Re-run of failing node-test-commit-windows-fanned ✔️ |
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
map
in such a way that it will becompatible with Python 3.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passescc @nodejs/python @cclauss