Skip to content

docs: fix Python 2 urllib.urlopen in Advanced Patterns example#3491

Closed
junliliu1 wants to merge 1 commit into
pallets:mainfrom
junliliu1:fix/python3-urllib-advanced-patterns
Closed

docs: fix Python 2 urllib.urlopen in Advanced Patterns example#3491
junliliu1 wants to merge 1 commit into
pallets:mainfrom
junliliu1:fix/python3-urllib-advanced-patterns

Conversation

@junliliu1
Copy link
Copy Markdown

The Advanced Patterns documentation uses urllib.urlopen (Python 2 API) in two examples under the "Parameter Modifications" section. Python 3 requires urllib.request.urlopen.

Changes:

  • Replace import urllib with import urllib.request in both examples
  • Replace urllib.urlopen(value) with urllib.request.urlopen(value) in both examples
  • Fix typo: "ignored with -va" → "invoked with -va" in Forwarding Unknown Options section

Fixes #3489

….urlopen

Also fix "ignored" → "invoked" typo in Forwarding Unknown Options section.

Fixes pallets#3489
@junliliu1
Copy link
Copy Markdown
Author

Closing in favor of #3492 submitted from the correct account.

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.

Advanced Patterns example uses Python 2 urllib.urlopen

2 participants