refactor: subprocess.run (#592)
* change check_call to run * refactor: change check_output to run * Apply suggestions from code review Co-authored-by: Joe Rickerby <joerick@mac.com> Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
co-authored by
Joe Rickerby
parent
58c5e56e9f
commit
d2772c2293
@@ -15,10 +15,12 @@ ALL_MACOS_WHEELS = (
|
||||
|
||||
|
||||
def get_xcode_version() -> Tuple[int, int]:
|
||||
output = subprocess.check_output(
|
||||
output = subprocess.run(
|
||||
['xcodebuild', '-version'],
|
||||
universal_newlines=True,
|
||||
)
|
||||
check=True,
|
||||
stdout=subprocess.PIPE,
|
||||
).stdout
|
||||
lines = output.splitlines()
|
||||
_, version_str = lines[0].split()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user