Lines 1-11
Link Here
|
1 |
--- tools/genv8constants.py.orig 2020-05-14 21:31:48 UTC |
1 |
--- tools/genv8constants.py.orig 2020-08-20 15:20:31 UTC |
2 |
+++ tools/genv8constants.py |
2 |
+++ tools/genv8constants.py |
3 |
@@ -20,7 +20,7 @@ if len(sys.argv) != 3: |
3 |
@@ -20,7 +20,7 @@ if len(sys.argv) != 3: |
4 |
outfile = open(sys.argv[1], 'w') |
4 |
outfile = open(sys.argv[1], 'w') |
5 |
try: |
5 |
try: |
6 |
pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ], |
6 |
pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ], |
7 |
- bufsize=-1, stdout=subprocess.PIPE).stdout |
7 |
- bufsize=-1, stdout=subprocess.PIPE).stdout |
8 |
+ bufsize=-1, stdout=subprocess.PIPE, text=True).stdout |
8 |
+ bufsize=-1, stdout=subprocess.PIPE, universal_newlines=True).stdout |
9 |
except OSError as e: |
9 |
except OSError as e: |
10 |
if e.errno == errno.ENOENT: |
10 |
if e.errno == errno.ENOENT: |
11 |
print(''' |
11 |
print(''' |