Fixed some problems with oauthtwitter

This commit is contained in:
Anna 2010-05-20 20:51:20 -04:00
parent 7877fa2412
commit 9e0e431d4c
2 changed files with 5 additions and 7 deletions

View file

@ -14,7 +14,7 @@ __author__ = "Hameedullah Khan <hameed@hameedkhan.net>"
__version__ = "0.2"
from twitter import Api
from twitter import Api,NewUserFromJsonDict
from twitter_pb2 import User
import simplejson
@ -207,5 +207,5 @@ class OAuthApi(Api):
json = self._FetchUrl(url)
data = simplejson.loads(json)
self._CheckForTwitterError(data)
return User.NewFromJsonDict(data)
return NewUserFromJsonDict(data)