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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyallel
3
- Version: 1.2.5
3
+ Version: 1.2.6
4
4
  Summary: Run and handle the output of multiple executables in pyallel (as in parallel)
5
5
  Home-page: https://github.com/Danthewaann/pyallel
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyallel"
3
- version = "1.2.5"
3
+ version = "1.2.6"
4
4
  description = "Run and handle the output of multiple executables in pyallel (as in parallel)"
5
5
  authors = ["Daniel Black <danielcrblack@gmail.com>"]
6
6
  license = "MIT"
@@ -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
- p_output_lines = 0
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 p_output.splitlines()[-self.process_lines[i - 1] :]:
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
- p_output_lines = get_num_lines(p_output)
309
-
310
- if not all and (command_lines + p_output_lines) > self.process_lines[i - 1]:
311
- truncate = (command_lines + p_output_lines) - self.process_lines[i - 1]
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