File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 38
38
39
39
# Reset this number to 0 on major V8 upgrades.
40
40
# Increment by one for each non-official patch applied to deps/v8.
41
- 'v8_embedder_string' : '-node.15 ' ,
41
+ 'v8_embedder_string' : '-node.16 ' ,
42
42
43
43
##### V8 defaults for Node.js #####
44
44
Original file line number Diff line number Diff line change 49
49
# for py2/py3 compatibility
50
50
from __future__ import print_function
51
51
52
+ import io
52
53
import re
53
54
import sys
54
55
@@ -380,7 +381,7 @@ def load_objects():
380
381
381
382
382
383
def load_objects_from_file (objfilename , checktypes ):
383
- objfile = open (objfilename , 'r' );
384
+ objfile = io . open (objfilename , 'r' , encoding = 'utf-8 ' );
384
385
in_insttype = False ;
385
386
386
387
typestr = '' ;
@@ -575,7 +576,7 @@ def load_fields():
575
576
576
577
577
578
def load_fields_from_file (filename ):
578
- inlfile = open (filename , 'r' );
579
+ inlfile = io . open (filename , 'r' , encoding = 'utf-8 ' );
579
580
580
581
#
581
582
# Each class's fields and the corresponding offsets are described in the
You can’t perform that action at this time.
0 commit comments