#13012: use splitlines(keepends=True/False) instead of splitlines(0/1).

This commit is contained in:
Ezio Melotti 2011-09-28 17:37:55 +03:00
parent a6e50f589f
commit d8b509b192
16 changed files with 39 additions and 39 deletions

View file

@ -84,7 +84,7 @@ class Template(metaclass=_TemplateMetaclass):
def _invalid(self, mo):
i = mo.start('invalid')
lines = self.template[:i].splitlines(True)
lines = self.template[:i].splitlines(keepends=True)
if not lines:
colno = 1
lineno = 1