X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/blobdiff_plain/b569edae18d4742f679924cd880271d578d01c43..623103dbef4dee3aff676cdc699fb7c1aaadcfd6:/cgi.py diff --git a/cgi.py b/cgi.py index b06ef85..05c6c9e 100644 --- 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): """