Skip to content

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

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

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

Conversation

@pintaste
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
@davidism davidism closed this May 21, 2026
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