pylint regexp raw string
This commit is contained in:
parent
f38cc9b26d
commit
4c0e12f739
@ -63,7 +63,7 @@ class account_document_template(orm.Model):
|
||||
self._uid,
|
||||
self._current_template_id,
|
||||
line_number)
|
||||
if re.match('L\( *' + str(line_number) + ' *\)', line.python_code):
|
||||
if re.match(r'L\( *' + str(line_number) + r' *\)', line.python_code):
|
||||
raise orm.except_orm(
|
||||
_('Error'),
|
||||
_('Line %s can\'t refer to itself') % str(line_number)
|
||||
|
Loading…
Reference in New Issue
Block a user