Uh oh!
There was an error while loading. Please reload this page.
Conversation
Some Python distributions do not support context manager protocol (CMP) for BZ2File.
Uh oh!
There was an error while loading. Please reload this page.
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
commented
Jan 7, 2020
/ping @nodejs/python |
Trott
commented
Jan 7, 2020
Lite CI might be good just to make sure this doesn't break Jenkins in a surprising totally-unexpected way. |
There was a problem hiding this 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??
Lite CI seems to be not working right now. Going to run a full CI. |
nodejs-github-bot
commented
Jan 7, 2020
nodejs-github-bot
commented
Jan 8, 2020
nodejs-github-bot
commented
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
commented
Jan 8, 2020
Landed in bd6d651 Thanks for the contribution! 🎉 |
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
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? |
Some Python distributions do not support
context manager protocol (CMP) for BZ2File.
Fixes#30949
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes