Skip to content

Commit e284468

Browse files
pythongh-94538: Fix Argument Clinic output to custom file (pythonGH-94539) (pythonGH-94555)
(cherry picked from commit 2b8ed4d) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent 77bf973 commit e284468

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix Argument Clinic output to custom file destinations. Patch by Erlend E.
2+
Aasland.

Tools/clinic/clinic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4131,7 +4131,7 @@ def directive_output(self, command_or_name, destination=''):
41314131
self.block.output.append('\n')
41324132
return
41334133

4134-
d = self.clinic.get_destination(destination)
4134+
d = self.clinic.get_destination_buffer(destination)
41354135

41364136
if command_or_name == "everything":
41374137
for name in list(fd):

0 commit comments

Comments
 (0)