+import json
+
from consumer import OAuthAbstractAuthConsumer
from forum.authentication.base import ConsumerTemplateContext
-try:
- import json as simplejson
-except ImportError:
- from django.utils import simplejson
-
from lib import oauth2
import settings
json = self.fetch_data(key, "https://twitter.com/account/verify_credentials.json")
if 'screen_name' in json:
- creds = simplejson.loads(json)
+ creds = json.loads(json)
return {
'username': creds['screen_name']
type = 'DIRECT'
weight = 150
human_name = 'Twitter'
- icon = '/media/images/openid/twitter.png'
\ No newline at end of file
+ icon = '/media/images/openid/twitter.png'