From 51d77d5699fbfa73d87fa1cc980fde0e460e2011 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 20 Mar 2024 23:51:25 -0400 Subject: [PATCH] Update prepare_build for Python 3.12 (#3865) --- app/scripts/prepare_build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/prepare_build b/app/scripts/prepare_build index b61f26c66c..ad96024249 100755 --- a/app/scripts/prepare_build +++ b/app/scripts/prepare_build @@ -118,7 +118,7 @@ def main(): with open(os.path.join(translators_dir, fn), 'r', encoding='utf-8') as f: contents = f.read() # 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: raise Exception("Metadata block not found in " + f.name) metadata = json.loads(m.group(0))