Woah, how the hell did we never notice this before? Set headers on the instance, not as a generic variable...

This commit is contained in:
Ryan McGrath 2011-01-17 19:50:39 -05:00
parent 435294e004
commit d5c34779d9

View file

@ -119,7 +119,7 @@ class Twython(object):
# If there's headers, set them, otherwise be an embarassing parent for their own good.
self.headers = headers
if self.headers is None:
headers = {'User-agent': 'Twython Python Twitter Library v1.3'}
self.headers = {'User-agent': 'Twython Python Twitter Library v1.3'}
consumer = None
token = None