1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 01:57:33 +00:00
bazarr/libs/python_anticaptcha/compat.py

16 lines
278 B
Python
Raw Normal View History

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:]),
]