From b6e4c175a350e10794821e31e4372811ab22e9c8 Mon Sep 17 00:00:00 2001 From: Stuart Ray <88628337+Stuartwastaken@users.noreply.github.com> Date: Wed, 5 Aug 2026 17:34:45 -0500 Subject: [PATCH] Fix regex pattern syntax in ttgrep.py --- util/ttgrep.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/ttgrep.py b/util/ttgrep.py index bc4c9f2c..72084f6d 100755 --- a/util/ttgrep.py +++ b/util/ttgrep.py @@ -33,7 +33,7 @@ def scan(f, pattern): writes = 0 compiled = re.compile(pattern) for line in f: - match = re.match(' *([-0-9.]+) us \(\+ *([0-9.]+) us\) (.*)', + match = re.match(r' *([-0-9.]+) us \(\+ *([0-9.]+) us\) (.*)', line) if not match: continue @@ -64,4 +64,4 @@ def scan(f, pattern): print("Usage: %s [--rebase] regex [logFile]" % (sys.argv[0])) sys.exit(1) -scan(f, sys.argv[1]) \ No newline at end of file +scan(f, sys.argv[1])