use raw strings for regexp with escape sequences

This commit is contained in:
Alexandre Fayolle
2014-12-03 09:48:10 +01:00
parent fff650242c
commit 42f47cfdc8
10 changed files with 120 additions and 120 deletions

View File

@@ -397,7 +397,7 @@ class parser(object):
param being a company account is not enforced here either.
"""
def normalize(account_no):
return re.sub('\s', '', account_no)
return re.sub(r'\s', '', account_no)
account = normalize(account)
cr.execute(