diff options
author | Joris Roovers <joris.roovers@gmail.com> | 2021-09-27 13:30:18 +0200 |
---|---|---|
committer | Joris Roovers <joris.roovers@gmail.com> | 2021-09-27 14:52:08 +0200 |
commit | c5fcff0692eb84b7b43cace42e4b0eea799f52c6 (patch) | |
tree | da0269620c081314391c72ca925ce91a87f76b86 /qa/shell.py | |
parent | e6afc6b9ce0bdd90c6837b36f416bec2370288dc (diff) |
Pylint 2.11.1 code fixes
Code fixes for new issues in pylint 2.11.1.
Diffstat (limited to 'qa/shell.py')
-rw-r--r-- | qa/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/shell.py b/qa/shell.py index 97dcd2c..630843f 100644 --- a/qa/shell.py +++ b/qa/shell.py @@ -67,8 +67,8 @@ else: popen_kwargs['env'] = kwargs['_env'] try: - p = subprocess.Popen(args, **popen_kwargs) - result = p.communicate() + with subprocess.Popen(args, **popen_kwargs) as p: + result = p.communicate() except FileNotFoundError as exc: raise CommandNotFound from exc |