def _request_authorization_code(self):
    (scheme, netloc, path, _, _, _) = _urlparse.urlparse(self._auth_endpoint)
    query = _urlencode(self._params)
    endpoint = _urlparse.urlunparse((scheme, netloc, path, None, query, None))
    auth_logger.debug(f'Requesting authorization code through {endpoint}')
    _webbrowser.open_new_tab(endpoint)
def _request_authorization_code(self):
    (scheme, netloc, path, _, _, _) = _urlparse.urlparse(self._auth_endpoint)
    query = _urlencode(self._params)
    endpoint = _urlparse.urlunparse((scheme, netloc, path, None, query, None))
    auth_logger.debug(f'Requesting authorization code through {endpoint}')
    _webbrowser.open_new_tab(endpoint)