[Epydoc-commits] SF.net SVN: epydoc: [1762] trunk/epydoc/src/epydoc/markup/__init__.py
Brought to you by:
edloper
|
From: <ed...@us...> - 2008-02-23 20:10:27
|
Revision: 1762
http://epydoc.svn.sourceforge.net/epydoc/?rev=1762&view=rev
Author: edloper
Date: 2008-02-23 12:10:25 -0800 (Sat, 23 Feb 2008)
Log Message:
-----------
- DocstringLinker.url_for() is now an optional method
Modified Paths:
--------------
trunk/epydoc/src/epydoc/markup/__init__.py
Modified: trunk/epydoc/src/epydoc/markup/__init__.py
===================================================================
--- trunk/epydoc/src/epydoc/markup/__init__.py 2008-02-23 19:50:28 UTC (rev 1761)
+++ trunk/epydoc/src/epydoc/markup/__init__.py 2008-02-23 20:10:25 UTC (rev 1762)
@@ -453,7 +453,7 @@
@rtype: C{string}
@return: The translated index term.
"""
- raise NotImplementedError, 'DocstringLinker.translate_indexterm()'
+ raise NotImplementedError('DocstringLinker.translate_indexterm()')
def translate_identifier_xref(self, identifier, label=None):
"""
@@ -472,14 +472,15 @@
@rtype: C{string}
@return: The translated crossreference link.
"""
- raise NotImplementedError, 'DocstringLinker.translate_xref()'
+ raise NotImplementedError('DocstringLinker.translate_xref()')
def url_for(self, identifier):
"""
Given an identifier, return a URL pointing at that identifier.
- This is used to create hyperlinks in dotgraphs.
+ This is used to create hyperlinks in dotgraphs. This method
+ is *optional* -- i.e., it may raise NotImplementedError
"""
- raise NotImplementedError, 'DocstringLinker.url_for()'
+ raise NotImplementedError('DocstringLinker.url_for()')
##################################################
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|