summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-08-29 21:14:56 -0700
committerEric Anholt <eric@anholt.net>2013-03-25 16:31:39 -0700
commitd5153cc7c384c316a42e025573727b48a33ef9e2 (patch)
tree7c9ceebe7e04a4a4f22cb87d461b8ed97adf536a
parent68c2780a9e7e976659a42cb84f2605d478442791 (diff)
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.
-rwxr-xr-xrun.py10
1 files 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"]