summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_re.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2025-04-08 13:09:35 +0300
committerJonathan Corbet <corbet@lwn.net>2025-04-09 21:10:34 +0300
commit04a383ced6965fedc9c1b6c83d841acce076b53c (patch)
tree065e9f8faaeb0424ea5281c5ac0eac7e1ef61aad /scripts/lib/kdoc/kdoc_re.py
parent16740c29dbf3275a22691d3d7c63701992872898 (diff)
downloadlinux-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-xscripts/lib/kdoc/kdoc_re.py4
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):