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

This commit is contained in:
Georg Brandl 2009-09-04 08:17:04 +00:00
parent fe18a11858
commit d22b9519d1
2 changed files with 6 additions and 1 deletions

View file

@ -624,7 +624,9 @@ class BaseCookie(dict):
if type(rawdata) == type(""):
self.__ParseString(rawdata)
else:
self.update(rawdata)
# self.update() wouldn't call our custom __setitem__
for k, v in rawdata.items():
self[k] = v
return
# end load()