From: Michael W. Hudson Date: Mon, 25 Mar 2002 13:11:47 +0000 (+0000) Subject: backport nascheme's checkin of X-Git-Tag: v2.2.1c2~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23e3982490d48060352ee189c4301947f73b4d5a;p=thirdparty%2FPython%2Fcpython.git backport nascheme's checkin of revision 1.60 of pydoc.py Quote href properly. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 46ef319d96c3..abf84e6cd4d1 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -450,7 +450,8 @@ TT { font-family: lucidatypewriter, lucida console, courier } all, scheme, rfc, pep, selfdot, name = match.groups() if scheme: - results.append('%s' % (all, escape(all))) + url = escape(all).replace('"', '"') + results.append('%s' % (url, url)) elif rfc: url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc) results.append('%s' % (url, escape(all)))