Skip to content

tools: make mkssldef.py Python 3 compatible - #25584

Closed
thefourtheye wants to merge 2 commits into
nodejs:masterfrom
thefourtheye:make-mkssldef.py-python3-compatible
Closed

tools: make mkssldef.py Python 3 compatible#25584
thefourtheye wants to merge 2 commits into
nodejs:masterfrom
thefourtheye:make-mkssldef.py-python3-compatible

Conversation

@thefourtheye

Copy link
Copy Markdown
Contributor

This patch replaces the usage of map in such a way that it will be
compatible with Python 3.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

cc @nodejs/python @cclauss

This patch replaces the usage of `map` in such a way that it will be
compatible with Python 3.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added openssl Issues and PRs related to the OpenSSL dependency. tls Issues and PRs related to the tls subsystem. tools Issues and PRs related to the tools directory. labels Jan 19, 2019
@refackrefack added the python PRs and issues that require attention from people who are familiar with Python. label Jan 19, 2019

@bnoordhuisbnoordhuis 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.

Left a comment but LGTM either way.

Comment threadtools/mkssldef.py Outdated
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

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.

You don't need the square brackets here, any() accepts a generator.

Copy link
Copy Markdown
ContributorAuthor

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

Copy link
Copy Markdown
Member

@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 27, 2019
@danbev

danbev commented Jan 28, 2019

Copy link
Copy Markdown
Contributor

Re-run of failing node-test-commit-windows-fanned ✔️

@danbev

Copy link
Copy Markdown
Contributor

Landed in 4814987.

@danbevdanbev closed this Jan 28, 2019
danbev pushed a commit that referenced this pull request Jan 28, 2019
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 <refack@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@thefourtheye
thefourtheye deleted the make-mkssldef.py-python3-compatible branch January 28, 2019 13:00
addaleax pushed a commit that referenced this pull request Jan 28, 2019
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 <refack@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@targostargos mentioned this pull request Jan 29, 2019
BethGriggs pushed a commit that referenced this pull request Apr 29, 2019
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 <refack@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@BethGriggsBethGriggs mentioned this pull request May 1, 2019
BethGriggs pushed a commit that referenced this pull request May 10, 2019
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 <refack@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
MylesBorins pushed a commit that referenced this pull request May 16, 2019
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 <refack@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.opensslIssues and PRs related to the OpenSSL dependency.pythonPRs and issues that require attention from people who are familiar with Python.tlsIssues and PRs related to the tls subsystem.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@thefourtheye@nodejs-github-bot@addaleax@danbev@refack@bnoordhuis@cclauss