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
This commit is contained in:
Mauro Carvalho Chehab
2025-04-08 18:09:35 +08:00
committed by Jonathan Corbet
parent 16740c29db
commit 04a383ced6
3 changed files with 159 additions and 159 deletions

View File

@@ -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):