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])