]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94555)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Jul 2022 12:33:59 +0000 (05:33 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Jul 2022 12:33:59 +0000 (14:33 +0200)
(cherry picked from commit 2b8ed4d3d4741811da31fc774a202d535755c0a9)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Misc/NEWS.d/next/Tools-Demos/2022-07-04-01-37-42.gh-issue-94538.1rgy1Y.rst [new file with mode: 0644]
Tools/clinic/clinic.py

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 (file)
index 0000000..e39ae39
--- /dev/null
@@ -0,0 +1,2 @@
+Fix Argument Clinic output to custom file destinations. Patch by Erlend E.
+Aasland.
index 5ad4f879a33f7b76de609910249f0287afe14759..791d43408233ce5ef01e97f0b03515da737b3b77 100755 (executable)
@@ -4131,7 +4131,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):