summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>2022-07-05 09:06:04 (GMT)
committerGitHub <noreply@github.com>2022-07-05 09:06:04 (GMT)
commit2b8ed4d3d4741811da31fc774a202d535755c0a9 (patch)
tree6f1d15436551ada5e07183dcf3dbbe6b8e21d448
parent4791a8a8357e67431cb686d9559aa419074b8e33 (diff)
downloadcpython-2b8ed4d3d4741811da31fc774a202d535755c0a9.zip
cpython-2b8ed4d3d4741811da31fc774a202d535755c0a9.tar.gz
cpython-2b8ed4d3d4741811da31fc774a202d535755c0a9.tar.bz2
gh-94538: Fix Argument Clinic output to custom file (#94539)
-rw-r--r--Misc/NEWS.d/next/Tools-Demos/2022-07-04-01-37-42.gh-issue-94538.1rgy1Y.rst2
-rwxr-xr-xTools/clinic/clinic.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS.d/next/Tools-Demos/2022-07-04-01-37-42.gh-issue-94538.1rgy1Y.rst b/Misc/NEWS.d/next/Tools-Demos/2022-07-04-01-37-42.gh-issue-94538.1rgy1Y.rst
new file mode 100644
index 0000000..e39ae39
--- /dev/null
+++ b/Misc/NEWS.d/next/Tools-Demos/2022-07-04-01-37-42.gh-issue-94538.1rgy1Y.rst
@@ -0,0 +1,2 @@
+Fix Argument Clinic output to custom file destinations. Patch by Erlend E.
+Aasland.
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index f0f2d20..91aa48c 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -4120,7 +4120,7 @@ class DSLParser:
self.block.output.append('\n')
return
- d = self.clinic.get_destination(destination)
+ d = self.clinic.get_destination_buffer(destination)
if command_or_name == "everything":
for name in list(fd):