diff options
author | Erlend Egeberg Aasland <erlend.aasland@protonmail.com> | 2022-07-05 09:06:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 09:06:04 (GMT) |
commit | 2b8ed4d3d4741811da31fc774a202d535755c0a9 (patch) | |
tree | 6f1d15436551ada5e07183dcf3dbbe6b8e21d448 | |
parent | 4791a8a8357e67431cb686d9559aa419074b8e33 (diff) | |
download | cpython-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.rst | 2 | ||||
-rwxr-xr-x | Tools/clinic/clinic.py | 2 |
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): |