mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)
This commit is contained in:
parent
384b81d923
commit
da0847048a
6 changed files with 14 additions and 29 deletions
|
@ -426,8 +426,7 @@ class Request:
|
|||
self.unredirected_hdrs.pop(header_name, None)
|
||||
|
||||
def header_items(self):
|
||||
hdrs = self.unredirected_hdrs.copy()
|
||||
hdrs.update(self.headers)
|
||||
hdrs = {**self.unredirected_hdrs, **self.headers}
|
||||
return list(hdrs.items())
|
||||
|
||||
class OpenerDirector:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue