1
0

fix deprecation warnings in regexes

This commit is contained in:
SomberNight
2018-09-20 18:31:17 +02:00
parent e4fd5ec1ae
commit 55b582511e
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ def multisig_type(wallet_type):
otherwise return None.'''
if not wallet_type:
return None
match = re.match('(\d+)of(\d+)', wallet_type)
match = re.match(r'(\d+)of(\d+)', wallet_type)
if match:
match = [int(x) for x in match.group(1, 2)]
return match