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.

This commit is contained in:
jlin 2009-09-13 19:35:45 -04:00
parent a1c4b17c6d
commit a90595f241

View file

@ -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: