chiark
/
gitweb
/
~mdw
/
chopwood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cgi.py (cookie): Exclude attribute keys whose value is false.
[chopwood]
/
cgi.py
diff --git
a/cgi.py
b/cgi.py
index b06ef8590c88364389ceadb1d8da0dc47e82e264..05c6c9e0739bfca0c4198c299e2e08e64ffe8fb0 100644
(file)
--- a/
cgi.py
+++ b/
cgi.py
@@
-145,7
+145,7
@@
def cookie(name, value, **kw):
T.gmtime(U.NOW + maxage))
return '; '.join(['%s=%s' % (urlencode(name), urlencode(value))] +
[v is not True and '%s=%s' % (k, v) or k
- for k, v in attr.iteritems()])
+ for k, v in attr.iteritems()
if v
])
def action(*v, **kw):
"""