mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-14 11:44:45 +08:00
15 lines
278 B
Python
15 lines
278 B
Python
import six
|
|
|
|
if six.PY3:
|
|
|
|
def split(value, sep, maxsplit):
|
|
return value.split(sep, maxsplit=maxsplit)
|
|
|
|
|
|
else:
|
|
|
|
def split(value, sep, maxsplit):
|
|
parts = value.split(sep)
|
|
return parts[:maxsplit] + [
|
|
sep.join(parts[maxsplit:]),
|
|
]
|