From: Guido van Rossum Date: Tue, 14 Mar 1995 17:22:28 +0000 (+0000) Subject: fix typos in escape() and print_form() X-Git-Tag: v1.2b4~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcce73af48387531e0cef280e27b3689bf7d4b85;p=thirdparty%2FPython%2Fcpython.git fix typos in escape() and print_form() --- diff --git a/Lib/cgi.py b/Lib/cgi.py index a9599a73b6e3..3862cb548bcb 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 ):