We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63051e commit 10072cbCopy full SHA for 10072cb
bpython/curtsiesfrontend/repl.py
@@ -2,6 +2,7 @@
2
import contextlib
3
import errno
4
import greenlet
5
+import itertools
6
import logging
7
import os
8
import re
@@ -1259,7 +1260,9 @@ def send_to_stdouterr(self, output):
1259
1260
)
1261
1262
# These can be FmtStrs, but self.all_logical_lines only wants strings
- for line in [self.current_stdouterr_line] + lines[1:-1]:
1263
+ for line in itertools.chain(
1264
+ (self.current_stdouterr_line,), lines[1:-1]
1265
+ ):
1266
if isinstance(line, FmtStr):
1267
self.all_logical_lines.append((line.s, LineType.OUTPUT))
1268
else:
0 commit comments