Skip to content

Conversation

@thefourtheye
Copy link
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-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
Copy link
Member

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

forlineinopen(filename).readlines():
name, _, _, meta, _=re.split('\s+', line)
ifany(map(lambdap: p.match(name), excludes)): continue
ifany([p.match(name)forpinexcludes]): continue
Copy link
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
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
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
Copy link
Contributor

danbev commented Jan 28, 2019

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

@danbev
Copy link
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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
@thefourtheyethefourtheye 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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
@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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
@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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
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