Skip to content

Commit 02cfd5e

Browse files
committed
Use write() instead of echo() in CLIRepl.writetb().
With write, tracebacks are also added to the history.
1 parent eadda42 commit 02cfd5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,8 @@ def undo(self, n=1):
12151215

12161216
def writetb(self, lines):
12171217
for line in lines:
1218-
self.echo('\x01%s\x03%s' % (self.config.color_scheme['error'],
1219-
line))
1218+
self.write('\x01%s\x03%s' % (self.config.color_scheme['error'],
1219+
line))
12201220

12211221
def yank_from_buffer(self):
12221222
"""Paste the text from the cut buffer at the current cursor location"""

0 commit comments

Comments
 (0)