mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-17 08:35:20 +08:00
Move split_lines tests around
This commit is contained in:
@@ -45,7 +45,7 @@ def split_lines(string, keepends=False):
|
||||
lst.append('')
|
||||
return lst
|
||||
else:
|
||||
return re.split(r'\n|\r\n', string)
|
||||
return re.split(r'\n|\r\n|\r', string)
|
||||
|
||||
|
||||
def python_bytes_to_unicode(source, encoding='utf-8', errors='strict'):
|
||||
|
||||
Reference in New Issue
Block a user