From dcce73af48387531e0cef280e27b3689bf7d4b85 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 14 Mar 1995 17:22:28 +0000 Subject: fix typos in escape() and print_form() --- Lib/cgi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/cgi.py b/Lib/cgi.py index a9599a7..3862cb5 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -258,13 +258,13 @@ def print_form( form ): for key in skeys: print '
', escape(key), ':', print '', escape(`type(form[key])`), '', - print '
', escape(form[key]) + print '
', escape(`form[key]`) print '' 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 ): -- cgit v0.12