SyntaxWarning: invalid escape sequence '\d'
IP = compile("(?:\d{1,3}\.){3}\d{1,3}")
/home/lolilover/tools/MHDDoS-main/start.py:169: SyntaxWarning: invalid
To resolve the error you need to escape the backslashes in your regular expression pattern. Here's the corrected code:
class Tools:
IP = compile("(?:\\d{1,3}\\.){3}\\d{1,3}")
protocolRex = compile('"protocol":(\\d+)')
What happened (Describe the bug) ?
A bug happened!
Screenshots
none
Please provide a link to a minimal reproduction of the bug
Version
2.4 (Default)
Which section is the problem?
Tools
Please complete the following information
What happened (Describe the bug) ?
A bug happened!
Screenshots
none
Please provide a link to a minimal reproduction of the bug
No response
Relevant log output
No response
Additional context
No response
Your code
No response