Skip to content

knockpy.py:118: SyntaxWarning: invalid escape sequence '\/' #146

@LocutusOfBorg

Description

@LocutusOfBorg

From: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065526

Preparing to unpack .../knockpy_7.0.0-1_all.deb ...
Unpacking knockpy (7.0.0-1) over (6.1.0-1) ...
Setting up knockpy (7.0.0-1) ...
/usr/lib/python3/dist-packages/knock/knockpy.py:118: SyntaxWarning: invalid escape sequence '/'
pattern = "http(s)?://(..%s)" % self.domain
/usr/lib/python3/dist-packages/knock/knockpy.py:121: SyntaxWarning: invalid escape sequence '.'
if match and re.match("^[a-zA-Z0-9-.]
$", match.groups()[1]):
Processing triggers for man-db (2.12.0-3) ...

Hello, can you please check the Python3.12 escape syntax deprecation warnings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions