Fixing a bug in the 3k build per request from bsavas

This commit is contained in:
Ryan McGrath 2010-10-14 10:11:03 -04:00
parent d630e02b6e
commit ff46a85e13

View file

@ -115,7 +115,7 @@ class setup:
"""
try:
return urllib.request.urlopen(shortener + "?" + urllib.urlencode({query: self.unicode2utf8(url_to_shorten)})).read()
except HTTPError as e:
except HTTPError, e:
raise TwythonError("shortenURL() failed with a %s error code." % repr(e.code))
def constructApiURL(self, base_url, params):