gh-94538: Fix Argument Clinic output to custom file (#94539)

This commit is contained in:
Erlend Egeberg Aasland 2022-07-05 11:06:04 +02:00 committed by GitHub
parent 4791a8a835
commit 2b8ed4d3d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
Fix Argument Clinic output to custom file destinations. Patch by Erlend E.
Aasland.

View file

@ -4120,7 +4120,7 @@ def directive_output(self, command_or_name, destination=''):
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):