Move split_lines tests around

This commit is contained in:
Dave Halter
2019-01-07 18:40:34 +01:00
parent 6f63147f69
commit 48c1a0e590

View File

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