diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2025-04-08 13:09:35 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2025-04-09 21:10:34 +0300 |
commit | 04a383ced6965fedc9c1b6c83d841acce076b53c (patch) | |
tree | 065e9f8faaeb0424ea5281c5ac0eac7e1ef61aad /scripts/lib/kdoc/kdoc_re.py | |
parent | 16740c29dbf3275a22691d3d7c63701992872898 (diff) | |
download | linux-04a383ced6965fedc9c1b6c83d841acce076b53c.tar.xz |
scripts/kernel-doc.py: Rename the kernel doc Re class to KernRe
Using just "Re" makes it harder to distinguish from the native
"re" class. So, let's rename it.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/4e095ecd5235a3e811ddcf5bad4cfb92f1da0a4a.1744106242.git.mchehab+huawei@kernel.org
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
-rwxr-xr-x | scripts/lib/kdoc/kdoc_re.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/kdoc/kdoc_re.py b/scripts/lib/kdoc/kdoc_re.py index d28485ff94d6..e81695b273bf 100755 --- a/scripts/lib/kdoc/kdoc_re.py +++ b/scripts/lib/kdoc/kdoc_re.py @@ -14,7 +14,7 @@ import re re_cache = {} -class Re: +class KernRe: """ Helper class to simplify regex declaration and usage, @@ -59,7 +59,7 @@ class Re: Allows adding two regular expressions into one. """ - return Re(str(self) + str(other), cache=self.cache or other.cache, + return KernRe(str(self) + str(other), cache=self.cache or other.cache, flags=self.regex.flags | other.regex.flags) def match(self, string): |