mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #5275: In Cookie's Cookie.load(), properly handle non-string arguments as documented.
This commit is contained in:
parent
fe18a11858
commit
d22b9519d1
2 changed files with 6 additions and 1 deletions
|
@ -624,7 +624,9 @@ class BaseCookie(dict):
|
||||||
if type(rawdata) == type(""):
|
if type(rawdata) == type(""):
|
||||||
self.__ParseString(rawdata)
|
self.__ParseString(rawdata)
|
||||||
else:
|
else:
|
||||||
self.update(rawdata)
|
# self.update() wouldn't call our custom __setitem__
|
||||||
|
for k, v in rawdata.items():
|
||||||
|
self[k] = v
|
||||||
return
|
return
|
||||||
# end load()
|
# end load()
|
||||||
|
|
||||||
|
|
|
@ -364,6 +364,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5275: In Cookie's Cookie.load(), properly handle non-string arguments
|
||||||
|
as documented.
|
||||||
|
|
||||||
- Issue #2666: Handle BROWSER environment variable properly for unknown browser
|
- Issue #2666: Handle BROWSER environment variable properly for unknown browser
|
||||||
names in the webbrowser module.
|
names in the webbrowser module.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue