-
-
Notifications
You must be signed in to change notification settings - Fork 954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] results.py:100: SyntaxWarning: invalid escape sequence '\|' #1144
Labels
bug
Something isn't working
Comments
Confirmed fix on Garuda Linux with whoogle installed via AUR. Before patch:
After patch:
Version:
Thanks for the fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: