Skip to content

Commit b63051e

Browse files
committed
Do not abort early if nothing to output (fixes #884)
Otherwise no TypeError is raised on b"" which is used by click to check if an output stream is a binary stream.
1 parent e940a37 commit b63051e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,8 +1240,6 @@ def send_to_stdouterr(self, output):
12401240
12411241
Must be able to handle FmtStrs because interpreter pass in
12421242
tracebacks already formatted."""
1243-
if not output:
1244-
return
12451243
lines = output.split("\n")
12461244
logger.debug("display_lines: %r", self.display_lines)
12471245
self.current_stdouterr_line += lines[0]

0 commit comments

Comments
 (0)