summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_re.py
diff options
context:
space:
mode:
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):