Project

General

Profile

Task #3154

Update use of Python subprocess for >=3.5

Added by Eric Irrgang about 1 month ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
core library
Target version:
-
Difficulty:
uncategorized
Close

Description

We now require Python 3.5, which means we have improved handling of subprocess stdio. Ref subprocess.run().

We can replace instances of old-style calls, like subprocess.check_output() -> subprocess.run() to improve readability and reduce risk of buffer-flush deadlocks.

See, for instance, python_packaging/src/gmxapi/commandline.py

Also available in: Atom PDF