def oauth_token_info_from_url(url):
 if isinstance(url, (str, unicode)):
  url = atom.http_core.Uri.parse_uri(url)
 token = None
 verifier = None
 if ('oauth_token' in url.query):
  token = urllib.unquote(url.query['oauth_token'])
 if ('oauth_verifier' in url.query):
  verifier = urllib.unquote(url.query['oauth_verifier'])
 return (token, verifier)

def oauth_token_info_from_url ( url ) : if isinstance ( url , ( str , unicode ) ) : url = atom . http_core . Uri . parse_uri ( url ) token = None verifier = None if ( 'oauth_token' in url . query ) : token = urllib . unquote ( url . query [ 'oauth_token' ] ) if ( 'oauth_verifier' in url . query ) : verifier = urllib . unquote ( url . query [ 'oauth_verifier' ] ) return ( token , verifier )
exracts an oauth access token from the redirected pages url .