mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 20:25:51 +03:00
[GH-ISSUE #1144] [BUG] results.py💯 SyntaxWarning: invalid escape sequence '\|' #695
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#695
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Apr 27, 2024).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/1144
Describe the bug
Getting the below warning on Arch Linux with Python 3.12:
To Reproduce
Steps to reproduce the behavior:
Deployment Method
runexecutableVersion 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.12so 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
rawstring for matching regex fixes things:HTH
@davidthewatson commented on GitHub (Aug 27, 2024):
Confirmed fix on Garuda Linux with whoogle installed via AUR.
Before patch:
After patch:
Version:
Thanks for the fix!