Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

bitly_http dropping timeout for non-PyCurl users #2

Open
adamn opened this issue Sep 13, 2010 · 0 comments
Open

bitly_http dropping timeout for non-PyCurl users #2

adamn opened this issue Sep 13, 2010 · 0 comments

Comments

@adamn
Copy link

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 referenced this issue in jehiah/bitly-api-python Jan 7, 2013
Implemented Data APIs
deletedcu added a commit to deletedcu/bitly-api-python that referenced this issue May 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant