Skip to content

Change type for urllib headers from Mapping to email.message.Message#3345

Merged
srittau merged 2 commits intopython:masterfrom
mthuurne:addinfourl_headers
Oct 11, 2019
Merged

Change type for urllib headers from Mapping to email.message.Message#3345
srittau merged 2 commits intopython:masterfrom
mthuurne:addinfourl_headers

Conversation

@mthuurne
Copy link
Contributor

See issue #3344.

…ython#3344)

While the Message class implements a mapping, it also has many
additional methods available.
Previously, the override changed a Mapping (immutable) into a Dict
(mutable). Since the 'email.message.Message' class is already mutable,
there is no need to override anymore.
@srittau srittau merged commit 6a92ae6 into python:master Oct 11, 2019
@mthuurne mthuurne deleted the addinfourl_headers branch May 20, 2020 18:05
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.

2 participants