Removed old code
authorAaron Hill <aa1ronham@gmail.com>
Fri, 16 Aug 2013 19:31:47 +0000 (15:31 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 27 Apr 2014 02:02:35 +0000 (22:02 -0400)
tweepy/auth.py

index d217dfe661743db6de70fce3268715f90ec999aa..a8056bbd5f4a6cd8298e2ef3ac3fe4e10f349f18 100644 (file)
@@ -57,10 +57,6 @@ class OAuthHandler(AuthHandler):
         try:
             url = self._get_oauth_url('request_token')
             return self.oauth.fetch_request_token(url)
-            request = oauth.OAuthRequest.from_consumer_and_token(self._consumer, http_url=url, callback=self.callback)
-            request.sign_request(self._sigmethod, self._consumer, None)
-            resp = urlopen(Request(url, headers=request.to_header()))
-            return oauth.OAuthToken.from_string(resp.read())
         except Exception as e:
             raise TweepError(e)
 
@@ -77,9 +73,6 @@ class OAuthHandler(AuthHandler):
                 url = self._get_oauth_url('authorize')
             self.request_token = self._get_request_token()
             return self.oauth.authorization_url(url)
-            token = oauth.fetch_request_token(url)
-            request = oauth.OAuthRequest.from_token_and_callback(token=self.request_token, http_url=url)
-            return request.to_url()
         except Exception as e:
             raise TweepError(e)
 
@@ -95,11 +88,6 @@ class OAuthHandler(AuthHandler):
             self.access_token = resp['oauth_token']
             self.access_token_secret = resp['oauth_token_secret']
             return (self.access_token, self.access_token_secret)
-            request = oauth.OAuthRequest.from_consumer_and_token(self._consumer, token=self.request_token, http_url=url, verifier=str(verifier))
-            request.sign_request(self._sigmethod, self._consumer, self.request_token)
-            resp = urlopen(Request(url, headers=request.to_header()))
-            self.access_token = oauth.OAuthToken.from_string(resp.read())
-            return self.access_token
         except Exception as e:
             raise TweepError(e)