diff options
author | mid-kid <esteve.varela@gmail.com> | 2019-02-10 00:17:19 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2019-02-10 00:17:19 +0100 |
commit | 1bc167379466b67c8b5bd1af311765c8b036c340 (patch) | |
tree | ed1f042dbf5fcb3bfecae2dc784e670e33a464f8 /tools/unnamed.py | |
parent | f04f31ea852a36ea94c94bfa9ccaa70a7dfec421 (diff) |
Fix python 3.6 support for unnamed.py
Diffstat (limited to 'tools/unnamed.py')
-rwxr-xr-x | tools/unnamed.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/unnamed.py b/tools/unnamed.py index 1757ae507..cea500fcd 100755 --- a/tools/unnamed.py +++ b/tools/unnamed.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 from sys import stderr, exit -from subprocess import run +from subprocess import Popen, PIPE from struct import unpack, calcsize from enum import Enum @@ -37,8 +37,8 @@ args = parser.parse_args() # Get list of object files objects = None if args.rootdir: - for line in run(["make", "-C", args.rootdir, "-s", "-p"], - capture_output=True).stdout.decode().split("\n"): + for line in Popen(["make", "-C", args.rootdir, "-s", "-p"], + stdout=PIPE).stdout.read().decode().split("\n"): if line.startswith("crystal_obj := "): objects = line[15:].strip().split() break |