# Path: python_anticaptcha/compat.py
# def split(value, sep, maxsplit):
#     return value.split(sep, maxsplit=maxsplit)
# 
# Path: python_anticaptcha/exceptions.py
# class AnticaptchaException(Exception):
#     def __init__(self, error_id, error_code, error_description, *args):
#         super(AnticaptchaException, self).__init__(
#             "[{}:{}]{}".format(error_code, error_id, error_description)
#         )
#         self.error_description = error_description
#         self.error_id = error_id
#         self.error_code = error_code


import requests
import time
import json
import warnings
from .compat import split
from six.moves.urllib_parse import urljoin
from .exceptions import AnticaptchaException
        return self._last_result["status"] == "ready"

    def get_solution_response(self):  # Recaptcha
        return self._last_result["solution"]["gRecaptchaResponse"]

    def get_token_response(self):  # Funcaptcha
        return self._last_result["solution"]["token"]

    def get_answers(self):
        return self._last_result["solution"]["answers"]

    def get_captcha_text(self):  # Image
        return self._last_result["solution"]["text"]

    def get_cells_numbers(self):
        return self._last_result["solution"]["cellNumbers"]

    def report_incorrect(self):
        warnings.warn(
            "report_incorrect is deprecated, use report_incorrect_image instead",
            DeprecationWarning,
        )
        return self.client.reportIncorrectImage()

    def report_incorrect_image(self):
        return self.client.reportIncorrectImage(self.task_id)

    def report_incorrect_recaptcha(self):
        return self.client.reportIncorrectRecaptcha(self.task_id)


# Path: python_anticaptcha/compat.py
# def split(value, sep, maxsplit):
#     return value.split(sep, maxsplit=maxsplit)
# 
# Path: python_anticaptcha/exceptions.py
# class AnticaptchaException(Exception):
#     def __init__(self, error_id, error_code, error_description, *args):
#         super(AnticaptchaException, self).__init__(
#             "[{}:{}]{}".format(error_code, error_id, error_description)
#         )
#         self.error_description = error_description
#         self.error_id = error_id
#         self.error_code = error_code


# Path: python_anticaptcha/base.py
import requests
import time
import json
import warnings
from .compat import split
from six.moves.urllib_parse import urljoin
from .exceptions import AnticaptchaException

        return self._last_result["status"] == "ready"

    def get_solution_response(self):  # Recaptcha
        return self._last_result["solution"]["gRecaptchaResponse"]

    def get_token_response(self):  # Funcaptcha
        return self._last_result["solution"]["token"]

    def get_answers(self):
        return self._last_result["solution"]["answers"]

    def get_captcha_text(self):  # Image
        return self._last_result["solution"]["text"]

    def get_cells_numbers(self):
        return self._last_result["solution"]["cellNumbers"]

    def report_incorrect(self):
        warnings.warn(
            "report_incorrect is deprecated, use report_incorrect_image instead",
            DeprecationWarning,
        )
        return self.client.reportIncorrectImage()

    def report_incorrect_image(self):
        return self.client.reportIncorrectImage(self.task_id)

    def report_incorrect_recaptcha(self):
        return self.client.reportIncorrectRecaptcha(self.task_id)


    def join(self, maximum_time=None):