FreeBSD Bugzilla – Attachment 238959 Details for
Bug 268502
lang/python311: fix regression
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
python311.patch (text/plain), 1.84 KB, created by
Dmitry Marakasov
on 2022-12-21 17:29:19 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Dmitry Marakasov
Created:
2022-12-21 17:29:19 UTC
Size:
1.84 KB
patch
obsolete
>commit 60885ff436a2f428b344f15f8e2a0cebc045ec82 >Author: Dmitry Marakasov <amdmi3@FreeBSD.org> >Date: Tue Dec 13 15:00:27 2022 +0300 > > lang/python311: fix regression > > Fix losing stdout of asyncio.subprocess spawned processes. > > Upstream issue: https://github.com/python/cpython/issues/100133 > >diff --git lang/python311/Makefile lang/python311/Makefile >index 81b31ae90b5c..900776860f1f 100644 >--- lang/python311/Makefile >+++ lang/python311/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= python > DISTVERSION= ${PYTHON_DISTVERSION} >+PORTREVISION= 1 > CATEGORIES= lang python > MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//} > PKGNAMESUFFIX= ${PYTHON_SUFFIX} >diff --git lang/python311/files/patch-GH-100133 lang/python311/files/patch-GH-100133 >new file mode 100644 >index 000000000000..6db2c1b3eec1 >--- /dev/null >+++ lang/python311/files/patch-GH-100133 >@@ -0,0 +1,24 @@ >+commit ae8520c70992710903819f24dbce4e7dd05d7ea8 >+Author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> >+Date: Wed Dec 21 02:24:19 2022 -0800 >+ >+ GH-100133: fix `asyncio` subprocess losing `stderr` and `stdout` output (GH-100154) >+ >+ (cherry picked from commit a7715ccfba5b86ab09f86ec56ac3755c93b46b48) >+ >+ Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> >+ >+diff --git Lib/asyncio/base_subprocess.py Lib/asyncio/base_subprocess.py >+index e15bb4141f..4c9b0dd565 100644 >+--- Lib/asyncio/base_subprocess.py >++++ Lib/asyncio/base_subprocess.py >+@@ -215,9 +215,6 @@ def _process_exited(self, returncode): >+ # object. On Python 3.6, it is required to avoid a ResourceWarning. >+ self._proc.returncode = returncode >+ self._call(self._protocol.process_exited) >+- for p in self._pipes.values(): >+- if p is not None: >+- p.pipe.close() >+ >+ self._try_finish() >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268502
: 238959