You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop (please complete the following information):
OS: Arch Linux
Browser Firefox
Version 125.0.2-1
Smartphone (please complete the following information):
Device: N/A
OS: N/A
Browser N/A
Version N/A
Additional context
Add any other context about the problem here.
$ pacman -Q python
python 3.12.3-1
This small patch fixes the warning for me, but this is python 3.12 so there's probably a better way to deal with the warning:
UPDATE:
This is due to the fact that Python 3.12.3 does SyntaxWarning instead of DeprecationWarning for invalid backslash escape sequences:
Invalid backslash escape sequences in strings now warn with SyntaxWarning instead of DeprecationWarning, making them more visible. (They will become syntax errors in the future.)
Using a raw string for matching regex fixes things:
$ cat syntaxwarning.patch--- a/app/utils/results.py+++ b/app/utils/results.py@@ -97,7 +97,7 @@ else: reg_pattern = fr'\b((?![{{}}<>-]){target_word}(?![{{}}<>-]))\b'- if re.match('.*[@_!#$%^&*()<>?/\|}{~:].*', target_word) or (+ if re.match(r'.*[@_!#$%^&*()<>?/\|}{~:].*', target_word) or ( element.parent and element.parent.name == 'style'): return
HTH
The text was updated successfully, but these errors were encountered:
Describe the bug
Getting the below warning on Arch Linux with Python 3.12:
To Reproduce
Steps to reproduce the behavior:
Deployment Method
run
executableVersion of Whoogle Search
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
$ pacman -Q python
python 3.12.3-1
This small patch fixes the warning for me, but this ispython 3.12
so there's probably a better way to deal with the warning:UPDATE:
This is due to the fact that Python 3.12.3 does SyntaxWarning instead of DeprecationWarning for invalid backslash escape sequences:
Using a
raw
string for matching regex fixes things:HTH
The text was updated successfully, but these errors were encountered: