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.
bazarr/libs/python_anticaptcha/compat.py

16 lines
278 B

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