pyallel 1.2.5__tar.gz → 1.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyallel-1.2.5 → pyallel-1.2.6}/PKG-INFO +1 -1
- {pyallel-1.2.5 → pyallel-1.2.6}/pyproject.toml +1 -1
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/process_group.py +12 -6
- {pyallel-1.2.5 → pyallel-1.2.6}/LICENSE +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/README.md +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/__init__.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/colours.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/constants.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/errors.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/main.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/parser.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/process.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/process_group_manager.py +0 -0
- {pyallel-1.2.5 → pyallel-1.2.6}/src/pyallel/py.typed +0 -0
|
@@ -291,11 +291,12 @@ class ProcessGroup:
|
|
|
291
291
|
self.output[process.id].append("")
|
|
292
292
|
self.output[process.id][0] += p_output
|
|
293
293
|
p_output = self.output[process.id][0]
|
|
294
|
-
|
|
294
|
+
p_output_lines_num = 0
|
|
295
295
|
if p_output:
|
|
296
296
|
if not all:
|
|
297
|
+
p_output_lines = p_output.splitlines()[-self.process_lines[i - 1] :]
|
|
297
298
|
p_output = ""
|
|
298
|
-
for line in
|
|
299
|
+
for line in p_output_lines:
|
|
299
300
|
if len(line) + 3 > constants.COLUMNS():
|
|
300
301
|
p_output += f"{''.join(line[:constants.COLUMNS()-3])}\n"
|
|
301
302
|
else:
|
|
@@ -305,10 +306,15 @@ class ProcessGroup:
|
|
|
305
306
|
p_output += "\n"
|
|
306
307
|
if i != num_processes:
|
|
307
308
|
p_output += "\n"
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
if
|
|
311
|
-
|
|
309
|
+
p_output_lines_num = get_num_lines(p_output)
|
|
310
|
+
|
|
311
|
+
if (
|
|
312
|
+
not all
|
|
313
|
+
and (command_lines + p_output_lines_num) > self.process_lines[i - 1]
|
|
314
|
+
):
|
|
315
|
+
truncate = (command_lines + p_output_lines_num) - self.process_lines[
|
|
316
|
+
i - 1
|
|
317
|
+
]
|
|
312
318
|
p_output = "\n".join(p_output.splitlines()[truncate:])
|
|
313
319
|
p_output += "\n"
|
|
314
320
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|