eric7/DocumentationTools/APIGenerator.py

branch
eric7
changeset 8761
f05818ae6431
parent 8312
800c432b34c8
child 8881
54e42bc2437a
--- a/eric7/DocumentationTools/APIGenerator.py	Wed Nov 03 19:45:20 2021 +0100
+++ b/eric7/DocumentationTools/APIGenerator.py	Wed Nov 03 20:02:41 2021 +0100
@@ -54,7 +54,7 @@
         """
         bases = {}
         self.includePrivate = includePrivate
-        classNames = sorted(list(self.module.classes.keys()))
+        classNames = sorted(self.module.classes.keys())
         for className in classNames:
             if (
                 not self.__isPrivate(self.module.classes[className]) and
@@ -98,7 +98,7 @@
         """
         Private method to generate the api section for classes.
         """
-        classNames = sorted(list(self.module.classes.keys()))
+        classNames = sorted(self.module.classes.keys())
         for className in classNames:
             if not self.__isPrivate(self.module.classes[className]):
                 self.__addClassVariablesAPI(className)
@@ -113,7 +113,7 @@
         from QScintilla.Editor import Editor
         
         _class = self.module.classes[className]
-        methods = sorted(list(_class.methods.keys()))
+        methods = sorted(_class.methods.keys())
         if '__init__' in methods:
             methods.remove('__init__')
             if _class.isPublic():
@@ -169,7 +169,7 @@
         """
         from QScintilla.Editor import Editor
         
-        funcNames = sorted(list(self.module.functions.keys()))
+        funcNames = sorted(self.module.functions.keys())
         for funcName in funcNames:
             if not self.__isPrivate(self.module.functions[funcName]):
                 if self.module.functions[funcName].isPublic():

eric ide

mercurial