Sync: + text
This commit is contained in:
1 parent
721917bb02
commit
6419f93d5b
1 file changed
+6
@@ -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
|
||||||
Reference in new issue
Block a user