Merge 698ea29bc2 into b5addb64f0
This commit is contained in:
commit
e31af2ecb2
@ -1239,6 +1239,14 @@ class Cookies(typing.MutableMapping[str, str]):
|
||||
)
|
||||
|
||||
return f"<Cookies[{cookies_repr}]>"
|
||||
|
||||
def __iadd__(self, other):
|
||||
if isinstance(other, self.__class__):
|
||||
self._cookies.update(other._cookies)
|
||||
else:
|
||||
raise ValueError("Cannot add a non-Cookies instance.")
|
||||
|
||||
return self
|
||||
|
||||
class _CookieCompatRequest(urllib.request.Request):
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user