]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94556)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Jul 2022 12:33:23 +0000 (05:33 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Jul 2022 12:33:23 +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 9ea2784085aacaf37426f9d9c08a04d1d50e1f25..8deea13b637501c2f7c6da8bafb00d57d6e0c7da 100755 (executable)
@@ -4053,7 +4053,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):