Sync: + text

This commit is contained in:
tmshv committed 2016-02-24 17:31:57 +03:00
1 parent 721917bb02
commit 6419f93d5b
1 file changed
+6
+6
View File
@@ -0,0 +1,6 @@
def split(data, separator='\n\n'):
try:
s = data.index(separator)
return data[:s], data[s:]
except ValueError:
return data, None