Drop redundant re.UNICODE flag

This commit is contained in:
Veronica Berglyd Olsen
2025-07-04 20:20:48 +02:00
parent 5ee362dcf4
commit 9af498d69a
4 changed files with 18 additions and 20 deletions
+2 -4
View File
@@ -289,7 +289,7 @@ class DocSearch:
def __init__(self) -> None:
self._regEx = re.compile(r"")
self._opts = re.UNICODE | re.IGNORECASE
self._opts = re.IGNORECASE
self._words = False
self._escape = True
return
@@ -300,9 +300,7 @@ class DocSearch:
def setCaseSensitive(self, state: bool) -> None:
"""Set the case sensitive search flag."""
self._opts = re.UNICODE
if not state:
self._opts |= re.IGNORECASE
self._opts = 0 if state else re.IGNORECASE
return
def setWholeWords(self, state: bool) -> None: