From: Fredrik Tolf Date: Wed, 18 Jul 2012 00:16:28 +0000 (+0200) Subject: Merge branch 'master' into python3 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=5218a0fd274ad9167d47b9c9929b089766cd2584;p=wrw.git Merge branch 'master' into python3 --- 5218a0fd274ad9167d47b9c9929b089766cd2584 diff --cc wrw/cookie.py index c6ae36c,16ddf81..3a3c916 --- a/wrw/cookie.py +++ b/wrw/cookie.py @@@ -27,9 -27,10 +27,10 @@@ class cookiedict(object) return default return self.bk[name].value - def add(self, name, value, path = None): + def add(self, name, value, **kw): self.codec[name] = value - if path is not None: self.codec[name]["path"] = path - for key, value in kw.iteritems(): ++ for key, value in kw.items(): + self.codec[name][key] = value def __setitem__(self, name, value): self.add(name, value)