Fixing issue pointed out by sk89q, wherein updateStatus() doesn't handle the in_reply_to_status_id parameter correctly.
This commit is contained in:
parent
69f747a658
commit
716fe69e60
2 changed files with 2 additions and 2 deletions
2
tango.py
2
tango.py
|
|
@ -157,7 +157,7 @@ class setup:
|
||||||
if len(list(status)) > 140:
|
if len(list(status)) > 140:
|
||||||
print "This status message is over 140 characters, but we're gonna try it anyway. Might wanna watch this!"
|
print "This status message is over 140 characters, but we're gonna try it anyway. Might wanna watch this!"
|
||||||
try:
|
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:
|
except HTTPError, e:
|
||||||
if self.debug is True:
|
if self.debug is True:
|
||||||
print e.headers
|
print e.headers
|
||||||
|
|
|
||||||
|
|
@ -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!")
|
print("This status message is over 140 characters, but we're gonna try it anyway. Might wanna watch this!")
|
||||||
if self.authenticated is True:
|
if self.authenticated is True:
|
||||||
try:
|
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:
|
except HTTPError as e:
|
||||||
if self.debug is True:
|
if self.debug is True:
|
||||||
print(e.headers)
|
print(e.headers)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue