Merge pull request #74 from frdmn/develop

Typo fix in "web.py"
This commit is contained in:
Luke Rogers 2013-07-05 05:23:42 -07:00
commit 08fae5e286

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)