def find_token(self, url):
    if url is None:
      return None
    if isinstance(url, str):
      url = atom.url.parse_url(url)
    if url in self._tokens:
      token = self._tokens[url]
      if token.valid_for_scope(url):
        return token
      else:
        del self._tokens[url]
    for scope, token in self._tokens.items():
      if token.valid_for_scope(url):
        return token
    return atom.http_interface.GenericToken()
Selects an Authorization header token which can be used for the URL.
dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/atom/token_store.py/TokenStore.find_token