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

bitly_http dropping timeout for non-PyCurl users #2

Open

Description

@adamn
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.

Activity

  1. added a commit that references this issue on Jan 7, 2013
  2. added a commit that references this issue on May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions