MNT: use raw for regular expression
This commit is contained in:
parent
0649ff8f3c
commit
da1bf54ec8
@ -612,7 +612,7 @@ class Parameter(QtCore.QObject):
|
||||
|
||||
def incrementName(self, name):
|
||||
## return an unused name by adding a number to the name given
|
||||
base, num = re.match('(.*)(\d*)', name).groups()
|
||||
base, num = re.match(r'(.*)(\d*)', name).groups()
|
||||
numLen = len(num)
|
||||
if numLen == 0:
|
||||
num = 2
|
||||
|
Loading…
Reference in New Issue
Block a user