| commit | 52bbe0f4690b305de571eb94b90863d3c0d4fec2 | [log] [tgz] |
|---|---|---|
| author | Michael Buesch <m@bues.ch> | Fri Jun 07 23:42:39 2019 +0200 |
| committer | Michael Buesch <m@bues.ch> | Sat Jun 08 16:12:16 2019 +0200 |
| tree | fba18409e43adf3e14017519559e464e9dd59ced | |
| parent | c4ac25e096d5ca660102a8806f9596269724eaba [diff] |
icebox_diff: Use cached re functions
diff --git a/icebox/icebox_diff.py b/icebox/icebox_diff.py index c0db200..5252fc4 100755 --- a/icebox/icebox_diff.py +++ b/icebox/icebox_diff.py
@@ -16,6 +16,7 @@ # import icebox +from icebox import re_match_cached import sys import re @@ -54,7 +55,7 @@ bits.add("!B%d[%d]" % (k, i)) text = set() for entry in db: - if re.match(r"LC_", entry[1]): + if re_match_cached(r"LC_", entry[1]): continue if entry[1] in ("routing", "buffer"): continue