Skip to content
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

build: avoid using CMP for BZ2File #31198

Closed
wants to merge 2 commits into from
Closed

build: avoid using CMP for BZ2File #31198

wants to merge 2 commits into from

Conversation

Copy link

@ghost ghost commented Jan 5, 2020

Some Python distributions do not support
context manager protocol (CMP) for BZ2File.

Fixes #30949

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

Some Python distributions do not support
context manager protocol (CMP) for BZ2File.
@nodejs-github-bot nodejs-github-bot added the build label Jan 5, 2020
configure.py Outdated Show resolved Hide resolved
@BridgeAR BridgeAR added the author ready label Jan 6, 2020
@BridgeAR
Copy link
Member

@BridgeAR BridgeAR commented Jan 6, 2020

Marked as author ready. I do not think we have any CI that could test this, so we should not require a CI run.

Trott
Trott approved these changes Jan 7, 2020
@Trott
Copy link
Member

@Trott Trott commented Jan 7, 2020

@Trott
Copy link
Member

@Trott Trott commented Jan 7, 2020

Marked as author ready. I do not think we have any CI that could test this, so we should not require a CI run.

Lite CI might be good just to make sure this doesn't break Jenkins in a surprising totally-unexpected way.

Copy link
Contributor

@cclauss cclauss left a comment

After looking at exceptions in https://docs.python.org/3/library/contextlib.html, I no longer believe that the proposed change is equivalent to the current code. If shutil.copyfileobj() raises an exception, will inf.close() happen??

@Trott
Copy link
Member

@Trott Trott commented Jan 7, 2020

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Jan 7, 2020

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Jan 8, 2020

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Jan 8, 2020

Trott pushed a commit that referenced this issue Jan 8, 2020
Some Python distributions do not support
context manager protocol (CMP) for BZ2File.

PR-URL: #31198
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
@Trott
Copy link
Member

@Trott Trott commented Jan 8, 2020

Landed in bd6d651

Thanks for the contribution! 🎉

@Trott Trott closed this Jan 8, 2020
MylesBorins pushed a commit that referenced this issue Jan 16, 2020
Some Python distributions do not support
context manager protocol (CMP) for BZ2File.

PR-URL: #31198
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
@codebytere codebytere mentioned this pull request Jan 16, 2020
@codebytere codebytere added dont-land-on-v12.x and removed dont-land-on-v12.x labels Mar 15, 2020
@codebytere
Copy link
Member

@codebytere codebytere commented Mar 15, 2020

This looks like it needs a backport but it doesn't land cleanly at all - would someone from @nodejs/platform-windows be able to help since the original committer's account is gone now?

@codebytere codebytere added the backport-requested-v12.x label Mar 15, 2020
@targos targos removed author ready backport-requested-v12.x labels Apr 25, 2020
@targos targos added the dont-land-on-v12.x label Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build dont-land-on-v12.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants