summaryrefslogtreecommitdiffstats
path: root/Lib/Cookie.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/Cookie.py')
-rw-r--r--Lib/Cookie.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/Cookie.py b/Lib/Cookie.py
index 1ccfd16..fc6d9f6 100644
--- a/Lib/Cookie.py
+++ b/Lib/Cookie.py
@@ -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()