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)