Kaydet (Commit) d22b9519 authored tarafından Georg Brandl's avatar Georg Brandl

Issue #5275: In Cookie's Cookie.load(), properly handle non-string arguments as documented.

üst fe18a118
...@@ -624,7 +624,9 @@ class BaseCookie(dict): ...@@ -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 ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment