diff --git a/twython.py b/twython.py index 6cff785..15c4a0b 100644 --- a/twython.py +++ b/twython.py @@ -487,7 +487,7 @@ class setup: """ if self.authenticated is True: try: - return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json", "POST" % id)) + return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json" % `id`, "DELETE")) except HTTPError, e: raise TwythonError("destroyStatus() failed with a %s error code." % `e.code`, e.code) else: diff --git a/twython3k.py b/twython3k.py index 07820fe..338effd 100644 --- a/twython3k.py +++ b/twython3k.py @@ -487,7 +487,7 @@ class setup: """ if self.authenticated is True: try: - return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json", "POST" % id)) + return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json" % `id`, "POST")) except HTTPError as e: raise TwythonError("destroyStatus() failed with a %s error code." % repr(e.code), e.code) else: