diff options
author | Jonathan Corbet <corbet@lwn.net> | 2025-06-30 09:33:23 -0600 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2025-06-30 09:56:01 -0600 |
commit | 09b9297478a3da4d940af8ff8c5f8e27be4990e8 (patch) | |
tree | aa6aafe8842700c1004da8cda70f8a5a392f61c5 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 362ec251a6aba32c8d950f0278c75aaa8c1b0b10 (diff) |
docs: kdoc: micro-optimize KernRe
Switch KernRe::add_regex() to a try..except block to avoid looking up each
regex twice.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions