chiark
/
gitweb
/
~mdw
/
chopwood
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b569eda
)
cgi.py (cookie): Exclude attribute keys whose value is false.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Mar 2013 05:27:29 +0000
(
05:27
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Mar 2013 05:35:11 +0000
(
05:35
+0000)
cgi.py
patch
|
blob
|
blame
|
history
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
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):
"""
def action(*v, **kw):
"""