Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

bitly_http dropping timeout for non-PyCurl users #2

adamn opened this Issue Sep 13, 2010 · 0 comments


None yet
1 participant

adamn commented Sep 13, 2010

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.

@jehiah jehiah referenced this issue in jehiah/bitly-api-python Jan 7, 2013

@hmason hmason Merge pull request #2 from bde/master
Implemented Data APIs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment