* uses same algorithm as CPython, supports all CPython eol characters in https://docs.python.org/3/library/stdtypes.html#str.splitlines