bitly-api-python
bitly-api-python copied to clipboard
bitly_http dropping timeout for non-PyCurl users
def makeUrllib2Http(url, user_agent):
should be:
def makeUrllib2Http(url, timeout, user_agent):
And use the timeout in urllib2. This requires Python 2.6 so you could wrap this in a try: except: for more portability. However, Python 2.6 has been stable for 2 years now.