Skip to content

SyntaxWarning when using -x option #143

@artkos

Description

@artkos

I get syntax warning:
/usr/bin/opensips-cli -x mi get_statistics all
/usr/lib/python3/dist-packages/opensipscli/modules/mi.py:87: SyntaxWarning: invalid escape sequence '.'
m = re.match('([a-zA-Z.-_]+)=', p)

#python3 -V
Python 3.12.3

I fixed error by editing line 87 to:
m = re.match(r'([a-zA-Z.-_]+)=', p)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions