From a90595f241be6813efe8e00c7b65fbfa9274b554 Mon Sep 17 00:00:00 2001 From: jlin Date: Sun, 13 Sep 2009 19:35:45 -0400 Subject: [PATCH] Don't cast id to a string as it's, much of the time, already a friggin' string. By casting, we end up causing 404's all over the place. --- twython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython.py b/twython.py index 7015fa8..f14f4a8 100644 --- a/twython.py +++ b/twython.py @@ -650,7 +650,7 @@ class setup: apiURL = "?screen_name=%s&follow=%s" %(screen_name, follow) try: if id is not None: - return simplejson.load(self.opener.open("http://twitter.com/friendships/create/%s.json" % `id`, "?folow=%s" % follow)) + return simplejson.load(self.opener.open("http://twitter.com/friendships/create/%s.json" % id, "?folow=%s" % follow)) else: return simplejson.load(self.opener.open("http://twitter.com/friendships/create.json", apiURL)) except HTTPError, e: