Skip to content

Commit a503589

Browse files
committed
Writing completion header to sys.stdout instead of self.stdout
1 parent adb62d8 commit a503589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ def _display_matches_gnu_readline(self, substitution, matches, longest_match_len
12601260

12611261
# Print the header if one exists
12621262
if self.completion_header:
1263-
self.stdout.write('\n' + self.completion_header)
1263+
sys.stdout.write('\n' + self.completion_header)
12641264

12651265
# Call readline's display function
12661266
# rl_display_match_list(strings_array, number of completion matches, longest match length)

0 commit comments

Comments
 (0)