diff options
author | Guido van Rossum <guido@python.org> | 1995-03-14 17:22:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-14 17:22:28 (GMT) |
commit | dcce73af48387531e0cef280e27b3689bf7d4b85 (patch) | |
tree | 3bf7958596c60f1086d72538414780eb3e03f79a /Lib/cgi.py | |
parent | 0012c1ec742555b99ad84b02d646361ef07ba42b (diff) | |
download | cpython-dcce73af48387531e0cef280e27b3689bf7d4b85.zip cpython-dcce73af48387531e0cef280e27b3689bf7d4b85.tar.gz cpython-dcce73af48387531e0cef280e27b3689bf7d4b85.tar.bz2 |
fix typos in escape() and print_form()
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-x | Lib/cgi.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -258,13 +258,13 @@ def print_form( form ): for key in skeys: print '<dt>', escape(key), ':', print '<i>', escape(`type(form[key])`), '</i>', - print '<dd>', escape(form[key]) + print '<dd>', escape(`form[key]`) print '</dl>' def escape( s ): - s = regsub.gsub('&', '&') # Must be done first - s = regsub.gsub('<', '<') - s = regsub.gsub('>', '>') + s = regsub.gsub('&', '&', s) # Must be done first + s = regsub.gsub('<', '<', s) + s = regsub.gsub('>', '>', s) return s def test( what ): |