Skip to content

Commit 2b8ed4d

Browse files
pythongh-94538: Fix Argument Clinic output to custom file (python#94539)
1 parent 4791a8a commit 2b8ed4d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4120,7 +4120,7 @@ def directive_output(self, command_or_name, destination=''):
41204120
self.block.output.append('\n')
41214121
return
41224122

4123-
d = self.clinic.get_destination(destination)
4123+
d = self.clinic.get_destination_buffer(destination)
41244124

41254125
if command_or_name == "everything":
41264126
for name in list(fd):

0 commit comments

Comments
 (0)