Author: reinhard
Date: 2009-10-09 02:46:49 -0500 (Fri, 09 Oct 2009)
New Revision: 9950

Modified:
   trunk/gnue-common/src/base/setup.py
   trunk/gnue-common/src/base/tree.py
Log:
Some epydoc fixes.


Modified: trunk/gnue-common/src/base/setup.py
===================================================================
--- trunk/gnue-common/src/base/setup.py 2009-10-08 22:16:15 UTC (rev 9949)
+++ trunk/gnue-common/src/base/setup.py 2009-10-09 07:46:49 UTC (rev 9950)
@@ -126,8 +126,13 @@
 # Import the package root module
 # -----------------------------------------------------------------------------
 
-if __name__ == '__main__':              # To make epydoc happy
+if __name__ == '__main__':
     import src as package_info
+else:
+    package_info = object()             # Fake object to make epydoc happy
+    package_info.PACKAGE = ""
+    package_info.TITLE = ""
+    package_info.VERSION = ""
 
 # -----------------------------------------------------------------------------
 # Check Python version

Modified: trunk/gnue-common/src/base/tree.py
===================================================================
--- trunk/gnue-common/src/base/tree.py  2009-10-08 22:16:15 UTC (rev 9949)
+++ trunk/gnue-common/src/base/tree.py  2009-10-09 07:46:49 UTC (rev 9950)
@@ -314,7 +314,8 @@
     """
     A node in an n-ary tree with a name.
 
-    C{NamedNode}s introduce a L{I{node name} <node_name>}.
+    C{NamedNode}s introduce a I{node name}, accessible through the attribute
+    C{__node_name__}.
 
     Children of C{NamedNode}s that are also C{NamedNode}s can be accessed
     with their name by using the L{__get_child__} function. At the same time,



_______________________________________________
commit-gnue mailing list
commit-gnue@gnu.org
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to