Coding style.

- Missed this when switching to subprocess.run.
This commit is contained in:
Andrew Hamilton 2018-04-06 11:57:07 +10:00
parent af162fcecf
commit 44abbfe53d
2 changed files with 7 additions and 8 deletions

View file

@ -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