summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-03-25 13:11:47 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-03-25 13:11:47 (GMT)
commit23e3982490d48060352ee189c4301947f73b4d5a (patch)
treee774e617d0a81f1df58a92136914090df6ca4d0a /Lib/pydoc.py
parent50b458fee254ff397913d49099bba35840b2fab7 (diff)
downloadcpython-23e3982490d48060352ee189c4301947f73b4d5a.zip
cpython-23e3982490d48060352ee189c4301947f73b4d5a.tar.gz
cpython-23e3982490d48060352ee189c4301947f73b4d5a.tar.bz2
backport nascheme's checkin of
revision 1.60 of pydoc.py Quote href properly.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 46ef319d..abf84e6 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('<a href="%s">%s</a>' % (all, escape(all)))
+ url = escape(all).replace('"', '&quot;')
+ results.append('<a href="%s">%s</a>' % (url, url))
elif rfc:
url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
results.append('<a href="%s">%s</a>' % (url, escape(all)))