The maxsplit functionality in .splitlines() was replaced by the keepends functionality which allows keeping the line end markers together with the string.