Alright, now import twython works as it should.
This commit is contained in:
parent
adab94b240
commit
c62c41a45e
12 changed files with 9 additions and 10 deletions
|
|
@ -18,7 +18,7 @@ from urlparse import urlparse
|
|||
from urllib2 import HTTPError
|
||||
|
||||
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
||||
__version__ = "0.5"
|
||||
__version__ = "0.6"
|
||||
|
||||
"""Twython - Easy Twitter utilities in Python"""
|
||||
|
||||
|
|
@ -60,7 +60,6 @@ class setup:
|
|||
self.access_token_url = 'https://twitter.com/oauth/access_token'
|
||||
self.authorization_url = 'http://twitter.com/oauth/authorize'
|
||||
self.signin_url = 'http://twitter.com/oauth/authenticate'
|
||||
self.signature_method = oauth.OAuthSignatureMethod_HMAC_SHA1()
|
||||
self.consumer_key = consumer_key
|
||||
self.consumer_secret = consumer_secret
|
||||
self.request_token = None
|
||||
|
|
@ -81,6 +80,7 @@ class setup:
|
|||
except HTTPError, e:
|
||||
raise TangoError("Authentication failed with your provided credentials. Try again? (%s failure)" % `e.code`, e.code)
|
||||
else:
|
||||
self.signature_method = oauth.OAuthSignatureMethod_HMAC_SHA1()
|
||||
# Awesome OAuth authentication ritual
|
||||
if consumer_secret is not None and consumer_key is not None:
|
||||
#req = oauth.OAuthRequest.from_consumer_and_token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue