From 2b8ed4d3d4741811da31fc774a202d535755c0a9 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Tue, 5 Jul 2022 11:06:04 +0200 Subject: gh-94538: Fix Argument Clinic output to custom file (#94539) --- .../next/Tools-Demos/2022-07-04-01-37-42.gh-issue-94538.1rgy1Y.rst | 2 ++ Tools/clinic/clinic.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Tools-Demos/2022-07-04-01-37-42.gh-issue-94538.1rgy1Y.rst 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): -- cgit v0.12