We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70261f commit ecda222Copy full SHA for ecda222
tools/v8_gypfiles/GN-scraper.py
@@ -7,8 +7,8 @@
7
def DoMain(args):
8
gn_filename, pattern = args
9
src_root = os.path.dirname(gn_filename)
10
- with open(gn_filename, 'r') as gn_file:
11
- gn_content = gn_file.read().encode('utf-8')
+ with open(gn_filename, 'rb') as gn_file:
+ gn_content = gn_file.read().decode('utf-8')
12
13
scraper_re = re.compile(pattern + r'\[([^\]]+)', re.DOTALL)
14
matches = scraper_re.search(gn_content)
0 commit comments