diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2012-08-29 21:14:56 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-03-25 16:31:39 -0700 |
commit | d5153cc7c384c316a42e025573727b48a33ef9e2 (patch) | |
tree | 7c9ceebe7e04a4a4f22cb87d461b8ed97adf536a | |
parent | 68c2780a9e7e976659a42cb84f2605d478442791 (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-x | run.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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"] |