DocumentationTools/APIGenerator.py

changeset 2401
4f428de32b69
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2953
703452a2876f
--- a/DocumentationTools/APIGenerator.py	Sun Feb 10 14:48:24 2013 +0100
+++ b/DocumentationTools/APIGenerator.py	Sun Feb 10 15:17:59 2013 +0100
@@ -8,8 +8,6 @@
 
 """
 
-from QScintilla.Editor import Editor
-
 
 class APIGenerator(object):
     """
@@ -79,6 +77,8 @@
         """
         Private method to generate the api section for global variables.
         """
+        from QScintilla.Editor import Editor
+        
         moduleNameStr = "{0}".format(self.moduleName)
         
         for globalName in sorted(self.module.globals.keys()):
@@ -107,6 +107,8 @@
         
         @param classname Name of the class containing the method. (string)
         """
+        from QScintilla.Editor import Editor
+        
         _class = self.module.classes[className]
         methods = sorted(list(_class.methods.keys()))
         if '__init__' in methods:
@@ -140,6 +142,8 @@
         
         @param classname Name of the class containing the class variables. (string)
         """
+        from QScintilla.Editor import Editor
+        
         _class = self.module.classes[className]
         classNameStr = "{0}{1}.".format(self.moduleName, className)
         for variable in sorted(_class.globals.keys()):
@@ -156,6 +160,8 @@
         """
         Private method to generate the api section for functions.
         """
+        from QScintilla.Editor import Editor
+        
         funcNames = sorted(list(self.module.functions.keys()))
         for funcName in funcNames:
             if not self.__isPrivate(self.module.functions[funcName]):

eric ide

mercurial