ldx / python-iptables

Python bindings for iptables
730 stars 182 forks source link

iptc/ip4tc.py:261: SyntaxWarning: invalid escape sequence '\s' #345

Open krunalkumarsolanki opened 3 months ago

krunalkumarsolanki commented 3 months ago

I encountered a SyntaxWarning when running Python 3.12 along with the iptc package. The warning message points to the file ip4tc.py, specifically at line 261:

/cclear/py/.venv/lib/python3.12/site-packages/iptc/ip4tc.py:261: SyntaxWarning: invalid escape sequence '\s'
master_celery  | 2024-05-13T18:58:19.588314006Z   '\s*(!)?\s*--([-\w]+)\s+(!)?\s*"?([^"]*?)"?(?=\s*(?:!?\s*--|$))')