Hello!
just FYI the issue also applies upstream, so I was intending to report
it there and tag this bug report as upstream.
However, the upstream repository on github is currently archived and new
issues cannot be reported there anymore. It has been archived on June
7th 2024. I have no idea if a fork of this repository is suggested for
continuation or not.
So this means that we should apply the change suggested by Ben as a
local patch.
I can confirm that changing all strings in the list of patterns into raw
strings makes the warnings go away and the matching is still working.
e.g. after changing the code:
robot-detection$ python3 -c 'from robot_detection import is_robot;
print(is_robot("blah"))'
False
robot-detection$ python3 -c 'from robot_detection import is_robot;
print(is_robot("Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko;
compatible; ClaudeBot/1.0; [email protected])"))'
True
Cheers!
- Bug#1078661: python3-robot-detection: Many SyntaxWar... Gabriel Filion
-