shithub: pokecrystal

Download patch

ref: 1bc167379466b67c8b5bd1af311765c8b036c340
parent: f04f31ea852a36ea94c94bfa9ccaa70a7dfec421
author: mid-kid <esteve.varela@gmail.com>
date: Sat Feb 9 19:17:19 EST 2019

Fix python 3.6 support for unnamed.py

--- 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 @@
 # 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