Coding style.
- Missed this when switching to subprocess.run.
This commit is contained in:
parent
af162fcecf
commit
44abbfe53d
2 changed files with 7 additions and 8 deletions
|
|
@ -245,9 +245,8 @@ def test_against_ls(root_path, environment):
|
|||
process = subprocess.run(
|
||||
["ls", "--color=always", "-R", root_path],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=environment)
|
||||
stdout, stderr = process.communicate()
|
||||
color_codes = lscolors.get_color_codes(environment)
|
||||
for line in stdout.splitlines():
|
||||
for line in process.stdout.splitlines():
|
||||
line = line.strip()
|
||||
if line == "":
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue