Skip to content

Commit 79312fa

Browse files
committed
Merge branch 'master' into develop
2 parents a8af9c1 + 3f41e25 commit 79312fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarm/x3/parse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def __init__(self):
3636

3737
@staticmethod
3838
def __get_value(string, ch, return_type, default=None):
39-
pattern = '{}(\-?\d+\.?\d*)'.format(ch)
39+
pattern = r'{}(\-?\d+\.?\d*)'.format(ch)
4040
data = re.findall(pattern, string)
4141
if len(data) > 0:
4242
return return_type(data[0])
4343
return default
4444

4545
@staticmethod
4646
def __get_hex_value(string, ch, default=None):
47-
pattern = '{}(-?\w{{3,4}})'.format(ch)
47+
pattern = r'{}(-?\w{{3,4}})'.format(ch)
4848
data = re.findall(pattern, string)
4949
if len(data) > 0:
5050
return int(data[0], base=16)

0 commit comments

Comments
 (0)