Skip to content

Commit 61dd7ed

Browse files
committed
Fix regex syntax warning
Hinting that we're dealing with a raw string fixes this Python warning: SyntaxWarning: invalid escape sequence '\.' Thanks to Karsten Wemheuer for the report!
1 parent 23b93e4 commit 61dd7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opensipscli/modules/mi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def print_yaml(self, result):
8484
def get_params_set(self, cmds):
8585
l = set()
8686
for p in cmds:
87-
m = re.match('([a-zA-Z\.\-_]+)=', p)
87+
m = re.match(r'([a-zA-Z._-]+)=', p)
8888
# if it's not a parameter name, skip
8989
if m:
9090
l.add(m.group(1))

0 commit comments

Comments
 (0)