MNT: use raw for regular expression

This commit is contained in:
Thomas A Caswell 2019-02-14 16:41:54 -05:00
parent 0649ff8f3c
commit da1bf54ec8
No known key found for this signature in database
GPG Key ID: BCD928050D713D75

View File

@ -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