Merge branch 'develop' of https://github.com/ClouDev/CloudBot into develop

This commit is contained in:
Luke Rogers 2013-07-08 22:15:23 +12:00
commit 90df679324

View file

@ -21,7 +21,7 @@ class ShortenError(Exception):
def isgd(url):
""" shortens a URL with the is.gd PAI """
""" shortens a URL with the is.gd API """
url = urlnorm.normalize(url.encode('utf-8'), assume_scheme='http')
params = urllib.urlencode({'format': 'json', 'url': url})
request = http.get_json("http://is.gd/create.php?%s" % params)