]> granicus.if.org Git - python/commitdiff
Update PEP URL.
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 5 Feb 2008 16:06:57 +0000 (16:06 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 5 Feb 2008 16:06:57 +0000 (16:06 +0000)
(This code is duplicated between pydoc and DocXMLRPCServer; maybe it
should be refactored as a GHOP project.)

2.5.2 backport candidate.

Lib/DocXMLRPCServer.py
Lib/pydoc.py

index 65b362940048078ef562b1af1b01d8f978af6ca4..3af9d4c5adb702b7b019d91714dfe850ed945607 100644 (file)
@@ -30,7 +30,7 @@ class ServerHTMLDoc(pydoc.HTMLDoc):
         results = []
         here = 0
 
-        # XXX Note that this regular expressions does not allow for the
+        # XXX Note that this regular expression does not allow for the
         # hyperlinking of arbitrary strings being used as method
         # names. Only methods with names consisting of word characters
         # and '.'s are hyperlinked.
@@ -52,7 +52,7 @@ class ServerHTMLDoc(pydoc.HTMLDoc):
                 url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
                 results.append('<a href="%s">%s</a>' % (url, escape(all)))
             elif pep:
-                url = 'http://www.python.org/peps/pep-%04d.html' % int(pep)
+                url = 'http://www.python.org/dev/peps/pep-%04d/' % int(pep)
                 results.append('<a href="%s">%s</a>' % (url, escape(all)))
             elif text[end:end+1] == '(':
                 results.append(self.namelink(name, methods, funcs, classes))
index 7585b18a206e59dc9550b088a71dc696013c732b..ee14bf5bf6200b222c199901958ec28ebc20411e 100755 (executable)
@@ -540,7 +540,7 @@ class HTMLDoc(Doc):
                 url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
                 results.append('<a href="%s">%s</a>' % (url, escape(all)))
             elif pep:
-                url = 'http://www.python.org/peps/pep-%04d' % int(pep)
+                url = 'http://www.python.org/dev/peps/pep-%04d/' % int(pep)
                 results.append('<a href="%s">%s</a>' % (url, escape(all)))
             elif text[end:end+1] == '(':
                 results.append(self.namelink(name, methods, funcs, classes))