mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
#13012: use splitlines(keepends=True/False) instead of splitlines(0/1).
This commit is contained in:
parent
a6e50f589f
commit
d8b509b192
16 changed files with 39 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue