From d5c34779d9b72a78e269981a8d9d3a9d0b8a7060 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Mon, 17 Jan 2011 19:50:39 -0500 Subject: [PATCH] Woah, how the hell did we never notice this before? Set headers on the instance, not as a generic variable... --- twython/twython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/twython.py b/twython/twython.py index fbe697b..07d6c04 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -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