diff options
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookies.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index 695161a..9cb80b9 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -535,7 +535,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() |