Hi,

I think I found a syntax error in opensips-cli.

In file opensipscli/modules/mi.py, line 87

  m = re.match('([a-zA-Z\.\-_]+)=', p)

this throws a warning "SyntaxWarning: invalid escape sequence '\.'"

Patch to fix:

--- a/opensipscli/modules/mi.py
+++ b/opensipscli/modules/mi.py
@@ -84,7 +84,7 @@
     def get_params_set(self, cmds):
         l = set()
         for p in cmds:
-            m = re.match('([a-zA-Z\.\-_]+)=', p)
+            m = re.match('([a-zA-Z\\.\\-_]+)=', p)
             # if it's not a parameter name, skip
             if m:
                 l.add(m.group(1))

Am I correct with this?

Best regards,

Karsten

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to