From 983f8e3065a36d3c7b5d7f86d56d4672a6a85aed Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sat, 1 Aug 2009 15:34:39 -0400 Subject: [PATCH] Huh, that indentation was off... backing out this comment for now --- tango/tango.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tango/tango.py b/tango/tango.py index e728bf1..aa731ae 100644 --- a/tango/tango.py +++ b/tango/tango.py @@ -90,20 +90,6 @@ class setup: # URL Shortening function huzzah def shortenURL(self, url_to_shorten, shortener = "http://is.gd/api.php", query = "longurl"): - """ - function:: shortenURL(url_to_shorten, shortener, query) - - Returns a shortened URL. - - :param url_to_shorten: URL to shorten, as a String - :param shortener: URL to an API call for a different shortening service, allows overriding. - :param query: Name of the param that you pass the long URL as. - - Example: - >>> twitter = tango.setup() - >>> twitter.shortenURL("http://webs.com/") - - """ try: return urllib2.urlopen(shortener + "?" + urllib.urlencode({query: url_to_shorten})).read() except HTTPError, e: