python-iptables icon indicating copy to clipboard operation
python-iptables copied to clipboard

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

Open krunalkumarsolanki opened this issue 1 year ago • 0 comments

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*--|$))')

krunalkumarsolanki avatar May 14 '24 19:05 krunalkumarsolanki