| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b63051e commit 10072cb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | import contextlib | |
| 3 | 3 | import errno | |
| 4 | 4 | import greenlet | |
| 5 | + import itertools | ||
| 5 | 6 | import logging | |
| 6 | 7 | import os | |
| 7 | 8 | import re | |
@@ -1259,7 +1260,9 @@ def send_to_stdouterr(self, output): | |||
| 1259 | 1260 | ) | |
| 1260 | 1261 | ) | |
| 1261 | 1262 | # These can be FmtStrs, but self.all_logical_lines only wants strings | |
| 1262 | - 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 | + ): | ||
| 1263 | 1266 | if isinstance(line, FmtStr): | |
| 1264 | 1267 | self.all_logical_lines.append((line.s, LineType.OUTPUT)) | |
| 1265 | 1268 | else: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments