Skip to content

SyntaxWarning: invalid escape sequence '\d' #23

@mapelo

Description

@mapelo

SyntaxWarning: invalid escape sequence '\d'
Fix: Need to change twice

From
pattern = re.compile("^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}$")
To
pattern = re.compile(r"^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}$")

In lines 165 and 208 of the ipwatch.py file

Thanks for your software
Manuel P

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