Update prepare_build for Python 3.12 (#3865)
This commit is contained in:
parent
4f5c1c90af
commit
51d77d5699
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ def main():
|
||||||
with open(os.path.join(translators_dir, fn), 'r', encoding='utf-8') as f:
|
with open(os.path.join(translators_dir, fn), 'r', encoding='utf-8') as f:
|
||||||
contents = f.read()
|
contents = f.read()
|
||||||
# Parse out the JSON metadata block
|
# Parse out the JSON metadata block
|
||||||
m = re.match('^\s*{[\S\s]*?}\s*?[\r\n]', contents)
|
m = re.match(r'^\s*{[\S\s]*?}\s*?[\r\n]', contents)
|
||||||
if not m:
|
if not m:
|
||||||
raise Exception("Metadata block not found in " + f.name)
|
raise Exception("Metadata block not found in " + f.name)
|
||||||
metadata = json.loads(m.group(0))
|
metadata = json.loads(m.group(0))
|
||||||
|
|
Loading…
Reference in a new issue