From d5153cc7c384c316a42e025573727b48a33ef9e2 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 29 Aug 2012 21:14:56 -0700 Subject: run.py: Use RE object methods directly. If you compile regular expressions, you're supposed to invoke them like this. I guess the other way works but usually those functions are only used with non-compiled pattern strings. --- run.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run.py b/run.py index 92e25a3..9d8c1ea 100755 --- a/run.py +++ b/run.py @@ -68,15 +68,15 @@ def run_test(filename): counts["fs8 "] = 0 counts["fs16"] = 0 for line in lines: - if (re.search(re_builtin_shader, line)): + if (re_builtin_shader.search(line)): current_type = "ignore" - elif (re.search(re_vs, line)): + elif (re_vs.search(line)): current_type = "vs " - elif (re.search(re_fs_8, line)): + elif (re_fs_8.search(line)): current_type = "fs8 " - elif (re.search(re_fs_16, line)): + elif (re_fs_16.search(line)): current_type = "fs16" - elif (re.search(re_align, line)): + elif (re_align.search(line)): counts[current_type] = counts[current_type] + 1 del counts["ignore"] -- cgit v1.2.3