mypy: assert Popen.stdout based on API, in tools/lint.

This commit is contained in:
neiljp (Neil Pilgrim)
2017-08-02 13:17:30 -07:00
committed by Tim Abbott
parent e772e89fe2
commit f96f71e439

View File

@@ -135,6 +135,7 @@ def run():
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
assert p.stdout # use of subprocess.PIPE indicates non-None
for line in iter(p.stdout.readline, b''):
print_err(name, color, line)