chiark
/
gitweb
/
~mdw
/
chopwood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
backend.py: Make FlatFileRecord._format include the trailing newline.
[chopwood]
/
cgi.py
diff --git
a/cgi.py
b/cgi.py
index cfa26f7725ec55faf0e13849ac5b0ef3fd2ce04e..69b90386b36ae99638697643e737cc98eb8e11b6 100644
(file)
--- a/
cgi.py
+++ b/
cgi.py
@@
-419,7
+419,8
@@
def cgiparse():
else:
PARAM.append((k, v))
if k in seen:
- del PARAMDICT[k]
+ try: del PARAMDICT[k]
+ except KeyError: pass
else:
PARAMDICT[k] = v
seen.add(k)