bitly-api-python icon indicating copy to clipboard operation
bitly-api-python copied to clipboard

bitly_http dropping timeout for non-PyCurl users

Open adamn opened this issue 15 years ago • 0 comments

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.

adamn avatar Sep 13 '10 19:09 adamn