Skip to content

Update to work with Python 3. Pass kwargs to urlopen. Fix imports. Fix tests.#1

Open
flyte wants to merge 1 commit into
graingert:masterfrom
flyte:master
Open

Update to work with Python 3. Pass kwargs to urlopen. Fix imports. Fix tests.#1
flyte wants to merge 1 commit into
graingert:masterfrom
flyte:master

Conversation

@flyte

@flyte flyte commented Nov 29, 2021

Copy link
Copy Markdown

A few updates here to make this more useful to modern projects.

  • Update to work with Python 3 (discarding Python 2 support)
  • Replace urllib2 with Python 3 urllib
  • Fix imports to enable from ogp import OpenGraph (this wasn't necessarily broken but it's more up to date now)
  • Update BeautifulSoup to version 4
  • Pass constructor kwargs to urlopen() to allow for setting timeouts etc.
  • Replace broken URLs in tests with working ones
  • Format code with black (just because I have it turned on, really)

If merged, this will constitute a major version bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant