[gnue] r9944 - in trunk/gnue-common/src: base logic/adapters utils

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2009-10-07 10:44:08 -0500 (Wed, 07 Oct 2009)
New Revision: 9944

Modified:
   trunk/gnue-common/src/base/setup.py
   trunk/gnue-common/src/logic/adapters/ecmascript.py
   trunk/gnue-common/src/utils/file.py
Log:
Some changes for epydoc.


Modified: trunk/gnue-common/src/base/setup.py
===================================================================
--- trunk/gnue-common/src/base/setup.py	2009-10-07 15:34:19 UTC (rev 9943)
+++ trunk/gnue-common/src/base/setup.py	2009-10-07 15:44:08 UTC (rev 9944)
@@ -126,7 +126,8 @@
 # Import the package root module
 # -----------------------------------------------------------------------------
 
-import src as package_info
+if __name__ = '__main__':               # To make epydoc happy
+    import src as package_info
 
 # -----------------------------------------------------------------------------
 # Check Python version

Modified: trunk/gnue-common/src/logic/adapters/ecmascript.py
===================================================================
--- trunk/gnue-common/src/logic/adapters/ecmascript.py	2009-10-07 15:34:19 UTC (rev 9943)
+++ trunk/gnue-common/src/logic/adapters/ecmascript.py	2009-10-07 15:44:08 UTC (rev 9944)
@@ -35,7 +35,7 @@
 
 from gnue.common.logic import language
 from gnue.common.logic.adapters import Base
-from gnue.common.logic.NamespaceCore import NamespaceElement
+from gnue.common.logic.GTriggerCore import NamespaceElement
 
 class LanguageAdapter(Base.LanguageAdapter):
   def __init__(self):

Modified: trunk/gnue-common/src/utils/file.py
===================================================================
--- trunk/gnue-common/src/utils/file.py	2009-10-07 15:34:19 UTC (rev 9943)
+++ trunk/gnue-common/src/utils/file.py	2009-10-07 15:44:08 UTC (rev 9944)
@@ -60,9 +60,11 @@
     Convert a string to a file object if it is not already.
 
     Example 1:
+
         >>> to_buffer('This is text\nFoo.').read()
 
     Example 2:
+
         >>> my_file = open('/etc/passwd')
         >>> to_buffer(my_file) == my_file
         >>> myfile.read()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.