summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-10-25 07:04:27 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-10-25 07:04:27 +0200
commitd705599e2a0fa99e791af9b349e901b54cb93304 (patch)
tree5a4d641ed9cc7b46d00a6f3e295f18da86eb994b
parent1b8e10061de200ceeda25e1eafd1454cb31241e1 (diff)
size.py: Do not try to parse escapes in regex
-rwxr-xr-xscript/size.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/size.py b/script/size.py
index ad41979..e1f6605 100755
--- a/script/size.py
+++ b/script/size.py
@@ -24,7 +24,7 @@ def main(size_executable, rom_sections, ram_sections):
section_size = dict()
for line in status.stdout.split("\n"):
- match = re.match("[.](\S+)\s+(\d+)", line)
+ match = re.match(r"[.](\S+)\s+(\d+)", line)
if match:
section = match.group(1)
size = int(match.group(2))