2
0

pylint regexp raw string

This commit is contained in:
Stéphane Bidoul 2014-11-18 21:07:06 +01:00 committed by Abraham Anes
parent f38cc9b26d
commit 4c0e12f739

View File

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