From 716fe69e608afffbbf68634059fdcee352de0af6 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 5 Jul 2009 03:53:28 -0400 Subject: [PATCH] Fixing issue pointed out by sk89q, wherein updateStatus() doesn't handle the in_reply_to_status_id parameter correctly. --- tango.py | 2 +- tango3k.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tango.py b/tango.py index 0994257..d19193c 100644 --- a/tango.py +++ b/tango.py @@ -157,7 +157,7 @@ class setup: if len(list(status)) > 140: print "This status message is over 140 characters, but we're gonna try it anyway. Might wanna watch this!" try: - return simplejson.load(self.opener.open("http://twitter.com/statuses/update.json?", urllib.urlencode({"status": status}, {"in_reply_to_status_id": in_reply_to_status_id}))) + return simplejson.load(self.opener.open("http://twitter.com/statuses/update.json?", urllib.urlencode({"status": status, "in_reply_to_status_id": in_reply_to_status_id}))) except HTTPError, e: if self.debug is True: print e.headers diff --git a/tango3k.py b/tango3k.py index ba3d771..696706d 100644 --- a/tango3k.py +++ b/tango3k.py @@ -160,7 +160,7 @@ class setup: print("This status message is over 140 characters, but we're gonna try it anyway. Might wanna watch this!") if self.authenticated is True: try: - return simplejson.load(self.opener.open("http://twitter.com/statuses/update.json?", urllib.parse.urlencode({"status": status}, {"in_reply_to_status_id": in_reply_to_status_id}))) + return simplejson.load(self.opener.open("http://twitter.com/statuses/update.json?", urllib.parse.urlencode({"status": status, "in_reply_to_status_id": in_reply_to_status_id}))) except HTTPError as e: if self.debug is True: print(e.headers)