def __init__(self, persistent=False,
                 cookies_filename=None, cookies_type='LWPCookieJar'):
        self.persistent = persistent
        self.cookies_filename = cookies_filename
        self.cookies_type = cookies_type
        self.passport = None
        self.http = RequestHandler()
        self.logger = logging.getLogger(conf.LOGGING_API_LOGGER)
        # Cache attributes to decrease API hits
        self._user_id = None
        self._username = None
        self._signatures = {}
        self._upload_url = None
        self._lixian_timestamp = None
        self._root_directory = None
        self._downloads_directory = None
        self._receiver_directory = None
        self._torrents_directory = None
        self._task_count = None
        self._task_quota = None
        if self.persistent:
            self.load_cookies()
Return a number formatted as percentage for the locale.
dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/API.__init__--crossover with--dataset/ETHPy150Open ibagrak/algae/gae/libs/babel/support.py/Format.percent