mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Update PEP URL.
(This code is duplicated between pydoc and DocXMLRPCServer; maybe it should be refactored as a GHOP project.) 2.5.2 backport candidate.
This commit is contained in:
		
							parent
							
								
									2db7cd3ae2
								
							
						
					
					
						commit
						727a59070d
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -30,7 +30,7 @@ def markup(self, text, escape=None, funcs={}, classes={}, methods={}): | |||
|         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 @@ def markup(self, text, escape=None, funcs={}, classes={}, methods={}): | |||
|                 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)) | ||||
|  |  | |||
|  | @ -540,7 +540,7 @@ def markup(self, text, escape=None, funcs={}, classes={}, methods={}): | |||
|                 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)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew M. Kuchling
						Andrew M. Kuchling