You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
307 B

try:
str.splitlines
except:
import sys
print("SKIP")
sys.exit()
print("foo\nbar".splitlines())
print("foo\nbar\n".splitlines())
print("foo\nbar".splitlines(True))
print("foo\nbar\n".splitlines(True))
print("foo\nbar".splitlines(keepends=True))
print("foo\nbar\n".splitlines(keepends=True))