Comment #1 on issue 231 by
Daniel.F...@gmail.com:
I have the same problem on Freebsd 9.0/amd64
Temporary workarround is to define the method yourself
def GetTrendsCurrent(self, exclude=None, woeid="1"):
parameters = {}
if exclude:
parameters['exclude'] = exclude
url = '%(url)s/trends/%(woeid)s.json' % { "url" :
self.base_url, "woeid" : woeid }
json = self._FetchUrl(url, parameters=parameters)
data = simplejson.loads(json)
self._CheckForTwitterError(data)
trends = []
for t in data[0]['trends']:
trends.append(twitter.Trend.NewFromJsonDict(t, timestamp =
data[0]['created_at']))
return trends
Then override the api's method with your new method
api.GetTrendsCurrent = types.MethodType( GetTrendsCurrent, api )
I have attached a patch
Attachments:
patch-GetTrendsCurrent.diff 1.1 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings