Skip to content

Commit a646e29

Browse files
committed
patch from Trundle to fix weirdness re: SyntaxError logging to stdout history
1 parent a92f864 commit a646e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def showsyntaxerror(self, filename=None):
203203
value = SyntaxError(msg, (filename, lineno, offset, line))
204204
sys.last_value = value
205205
list = traceback.format_exception_only(type, value)
206-
map(self.writetb, list)
206+
self.writetb(list)
207207

208208
def showtraceback(self):
209209
"""This needs to override the default traceback thing

0 commit comments

Comments
 (0)