Fixed a few style and coding issues.

Thu, 12 Nov 2015 19:17:05 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 Nov 2015 19:17:05 +0100
changeset 4554
f3428ddd577c
parent 4553
a6b2acd1a355
child 4555
861e1741985c

Fixed a few style and coding issues.

Debugger/DebugServer.py file | annotate | diff | comparison | revisions
Debugger/ExceptionsFilterDialog.py file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Source/eric6.Debugger.DebugServer.html file | annotate | diff | comparison | revisions
Helpviewer/FeaturePermissions/FeaturePermissionsDialog.py file | annotate | diff | comparison | revisions
MultiProject/MultiProjectBrowser.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/EditorAPIsPage.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/EditorHighlightersPage.py file | annotate | diff | comparison | revisions
Project/LexerAssociationDialog.py file | annotate | diff | comparison | revisions
eric6.e4p file | annotate | diff | comparison | revisions
--- a/Debugger/DebugServer.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/Debugger/DebugServer.py	Thu Nov 12 19:17:05 2015 +0100
@@ -292,7 +292,7 @@
         for language in self.__debuggerInterfaceRegistry:
             registeredInterfaces[language] = \
                 self.__debuggerInterfaceRegistry[language][-1]
-                # last entry is the registry data function
+            # last entry is the registry data function
         
         self.__debuggerInterfaceRegistry = {}
         for language, getRegistryData in registeredInterfaces.items():
@@ -320,15 +320,15 @@
             return
         
         clientLanguage, clientCapabilities, clientExtensions, \
-        interfaceCreator = getRegistryData()
+            interfaceCreator = getRegistryData()
         if clientLanguage:
             self.__debuggerInterfaceRegistry[clientLanguage] = \
-                [clientCapabilities, clientExtensions, interfaceCreator, 
+                [clientCapabilities, clientExtensions, interfaceCreator,
                  getRegistryData]
         
     def unregisterDebuggerInterface(self, name):
         """
-        Private method to unregister a debugger interface.
+        Public method to unregister a debugger interface.
         
         @param name name of the debugger interface
         @type str
--- a/Debugger/ExceptionsFilterDialog.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/Debugger/ExceptionsFilterDialog.py	Thu Nov 12 19:17:05 2015 +0100
@@ -62,7 +62,7 @@
         Private slot to delete all exceptions of the listbox.
         """
         while self.exceptionList.count() > 0:
-            itm = self.exceptionList.takeItem(0)
+            itm = self.exceptionList.takeItem(0)    # __IGNORE_WARNING__
             del itm
 
     @pyqtSlot()
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Source/eric6.Debugger.DebugServer.html	Sun Nov 08 17:01:39 2015 +0100
+++ b/Documentation/Source/eric6.Debugger.DebugServer.html	Thu Nov 12 19:17:05 2015 +0100
@@ -506,7 +506,7 @@
 <td>Public method to start a debug client.</td>
 </tr><tr>
 <td><a href="#DebugServer.unregisterDebuggerInterface">unregisterDebuggerInterface</a></td>
-<td>Private method to unregister a debugger interface.</td>
+<td>Public method to unregister a debugger interface.</td>
 </tr>
 </table>
 <h3>Static Methods</h3>
@@ -1854,7 +1854,7 @@
 <h4>DebugServer.unregisterDebuggerInterface</h4>
 <b>unregisterDebuggerInterface</b>(<i>name</i>)
 <p>
-        Private method to unregister a debugger interface.
+        Public method to unregister a debugger interface.
 </p><dl>
 <dt><i>name</i> (str)</dt>
 <dd>
--- a/Helpviewer/FeaturePermissions/FeaturePermissionsDialog.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/Helpviewer/FeaturePermissions/FeaturePermissionsDialog.py	Thu Nov 12 19:17:05 2015 +0100
@@ -99,7 +99,7 @@
         Private slot to remove all geolocation entries.
         """
         while self.geoList.topLevelItemCount() > 0:
-            itm = self.geoList.takeTopLevelItem(0)
+            itm = self.geoList.takeTopLevelItem(0)      # __IGNORE_WARNING__
             del itm
         self.__updateGeoButtons()
     
@@ -128,7 +128,7 @@
         Private slot to remove all notification entries.
         """
         while self.notifList.topLevelItemCount() > 0:
-            itm = self.notifList.takeTopLevelItem(0)
+            itm = self.notifList.takeTopLevelItem(0)    # __IGNORE_WARNING__
             del itm
         self.__updateNotifButtons()
     
--- a/MultiProject/MultiProjectBrowser.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/MultiProject/MultiProjectBrowser.py	Thu Nov 12 19:17:05 2015 +0100
@@ -112,7 +112,7 @@
             parent.removeChild(itm)
             del itm
             if parent.childCount() == 0:
-                top = self.takeTopLevelItem(self.indexOfTopLevelItem(parent))
+                top = self.takeTopLevelItem(self.indexOfTopLevelItem(parent))   # __IGNORE_WARNING__
                 del top
     
     def __projectDataChanged(self, project):
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py	Thu Nov 12 19:17:05 2015 +0100
@@ -242,7 +242,7 @@
         if res:
             for guardItem in self.guardsList.selectedItems():
                 row = self.guardsList.row(guardItem)
-                itm = self.guardsList.takeItem(row)
+                itm = self.guardsList.takeItem(row)        # __IGNORE_WARNING__
                 del itm
         
         self.__dirtyList = True
--- a/Preferences/ConfigurationPages/EditorAPIsPage.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/Preferences/ConfigurationPages/EditorAPIsPage.py	Thu Nov 12 19:17:05 2015 +0100
@@ -165,7 +165,7 @@
         """
         crow = self.apiList.currentRow()
         if crow >= 0:
-            itm = self.apiList.takeItem(crow)
+            itm = self.apiList.takeItem(crow)       # __IGNORE_WARNING__
             del itm
         self.prepareApiButton.setEnabled(self.apiList.count() > 0)
         
--- a/Preferences/ConfigurationPages/EditorHighlightersPage.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/Preferences/ConfigurationPages/EditorHighlightersPage.py	Thu Nov 12 19:17:05 2015 +0100
@@ -94,7 +94,7 @@
                 ext, Qt.MatchFlags(Qt.MatchExactly), 0)
             if itmList:
                 index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
-                itm = self.editorLexerList.takeTopLevelItem(index)
+                itm = self.editorLexerList.takeTopLevelItem(index)      # __IGNORE_WARNING__
                 del itm
             QTreeWidgetItem(self.editorLexerList, [ext, lexer])
             self.editorFileExtEdit.clear()
@@ -113,7 +113,7 @@
         itmList = self.editorLexerList.selectedItems()
         if itmList:
             index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
-            itm = self.editorLexerList.takeTopLevelItem(index)
+            itm = self.editorLexerList.takeTopLevelItem(index)      # __IGNORE_WARNING__
             del itm
             
             self.editorLexerList.clearSelection()
--- a/Project/LexerAssociationDialog.py	Sun Nov 08 17:01:39 2015 +0100
+++ b/Project/LexerAssociationDialog.py	Thu Nov 12 19:17:05 2015 +0100
@@ -83,7 +83,7 @@
                 ext, Qt.MatchFlags(Qt.MatchExactly), 0)
             if itmList:
                 index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
-                itm = self.editorLexerList.takeTopLevelItem(index)
+                itm = self.editorLexerList.takeTopLevelItem(index)      # __IGNORE_WARNING__
                 del itm
             QTreeWidgetItem(self.editorLexerList, [ext, lexer])
             self.editorFileExtEdit.clear()
@@ -102,7 +102,7 @@
         itmList = self.editorLexerList.selectedItems()
         if itmList:
             index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
-            itm = self.editorLexerList.takeTopLevelItem(index)
+            itm = self.editorLexerList.takeTopLevelItem(index)      # __IGNORE_WARNING__
             del itm
             
             self.editorLexerList.clearSelection()
--- a/eric6.e4p	Sun Nov 08 17:01:39 2015 +0100
+++ b/eric6.e4p	Thu Nov 12 19:17:05 2015 +0100
@@ -26,54 +26,6 @@
     <Source>DataViews/PyCoverageDialog.py</Source>
     <Source>DataViews/PyProfileDialog.py</Source>
     <Source>DataViews/__init__.py</Source>
-    <Source>DebugClients/Python/AsyncFile.py</Source>
-    <Source>DebugClients/Python/AsyncIO.py</Source>
-    <Source>DebugClients/Python/DCTestResult.py</Source>
-    <Source>DebugClients/Python/DebugBase.py</Source>
-    <Source>DebugClients/Python/DebugClient.py</Source>
-    <Source>DebugClients/Python/DebugClientBase.py</Source>
-    <Source>DebugClients/Python/DebugClientCapabilities.py</Source>
-    <Source>DebugClients/Python/DebugClientThreads.py</Source>
-    <Source>DebugClients/Python/DebugConfig.py</Source>
-    <Source>DebugClients/Python/DebugProtocol.py</Source>
-    <Source>DebugClients/Python/DebugThread.py</Source>
-    <Source>DebugClients/Python/FlexCompleter.py</Source>
-    <Source>DebugClients/Python/PyProfile.py</Source>
-    <Source>DebugClients/Python/__init__.py</Source>
-    <Source>DebugClients/Python/coverage/__init__.py</Source>
-    <Source>DebugClients/Python/coverage/__main__.py</Source>
-    <Source>DebugClients/Python/coverage/annotate.py</Source>
-    <Source>DebugClients/Python/coverage/backunittest.py</Source>
-    <Source>DebugClients/Python/coverage/backward.py</Source>
-    <Source>DebugClients/Python/coverage/bytecode.py</Source>
-    <Source>DebugClients/Python/coverage/cmdline.py</Source>
-    <Source>DebugClients/Python/coverage/collector.py</Source>
-    <Source>DebugClients/Python/coverage/config.py</Source>
-    <Source>DebugClients/Python/coverage/control.py</Source>
-    <Source>DebugClients/Python/coverage/data.py</Source>
-    <Source>DebugClients/Python/coverage/debug.py</Source>
-    <Source>DebugClients/Python/coverage/env.py</Source>
-    <Source>DebugClients/Python/coverage/execfile.py</Source>
-    <Source>DebugClients/Python/coverage/files.py</Source>
-    <Source>DebugClients/Python/coverage/html.py</Source>
-    <Source>DebugClients/Python/coverage/misc.py</Source>
-    <Source>DebugClients/Python/coverage/monkey.py</Source>
-    <Source>DebugClients/Python/coverage/parser.py</Source>
-    <Source>DebugClients/Python/coverage/phystokens.py</Source>
-    <Source>DebugClients/Python/coverage/pickle2json.py</Source>
-    <Source>DebugClients/Python/coverage/plugin.py</Source>
-    <Source>DebugClients/Python/coverage/plugin_support.py</Source>
-    <Source>DebugClients/Python/coverage/python.py</Source>
-    <Source>DebugClients/Python/coverage/pytracer.py</Source>
-    <Source>DebugClients/Python/coverage/report.py</Source>
-    <Source>DebugClients/Python/coverage/results.py</Source>
-    <Source>DebugClients/Python/coverage/summary.py</Source>
-    <Source>DebugClients/Python/coverage/templite.py</Source>
-    <Source>DebugClients/Python/coverage/test_helpers.py</Source>
-    <Source>DebugClients/Python/coverage/version.py</Source>
-    <Source>DebugClients/Python/coverage/xmlreport.py</Source>
-    <Source>DebugClients/Python/eric6dbgstub.py</Source>
-    <Source>DebugClients/Python/getpass.py</Source>
     <Source>DebugClients/Python3/AsyncFile.py</Source>
     <Source>DebugClients/Python3/AsyncIO.py</Source>
     <Source>DebugClients/Python3/DCTestResult.py</Source>
@@ -123,6 +75,54 @@
     <Source>DebugClients/Python3/coverage/xmlreport.py</Source>
     <Source>DebugClients/Python3/eric6dbgstub.py</Source>
     <Source>DebugClients/Python3/getpass.py</Source>
+    <Source>DebugClients/Python/AsyncFile.py</Source>
+    <Source>DebugClients/Python/AsyncIO.py</Source>
+    <Source>DebugClients/Python/DCTestResult.py</Source>
+    <Source>DebugClients/Python/DebugBase.py</Source>
+    <Source>DebugClients/Python/DebugClient.py</Source>
+    <Source>DebugClients/Python/DebugClientBase.py</Source>
+    <Source>DebugClients/Python/DebugClientCapabilities.py</Source>
+    <Source>DebugClients/Python/DebugClientThreads.py</Source>
+    <Source>DebugClients/Python/DebugConfig.py</Source>
+    <Source>DebugClients/Python/DebugProtocol.py</Source>
+    <Source>DebugClients/Python/DebugThread.py</Source>
+    <Source>DebugClients/Python/FlexCompleter.py</Source>
+    <Source>DebugClients/Python/PyProfile.py</Source>
+    <Source>DebugClients/Python/__init__.py</Source>
+    <Source>DebugClients/Python/coverage/__init__.py</Source>
+    <Source>DebugClients/Python/coverage/__main__.py</Source>
+    <Source>DebugClients/Python/coverage/annotate.py</Source>
+    <Source>DebugClients/Python/coverage/backunittest.py</Source>
+    <Source>DebugClients/Python/coverage/backward.py</Source>
+    <Source>DebugClients/Python/coverage/bytecode.py</Source>
+    <Source>DebugClients/Python/coverage/cmdline.py</Source>
+    <Source>DebugClients/Python/coverage/collector.py</Source>
+    <Source>DebugClients/Python/coverage/config.py</Source>
+    <Source>DebugClients/Python/coverage/control.py</Source>
+    <Source>DebugClients/Python/coverage/data.py</Source>
+    <Source>DebugClients/Python/coverage/debug.py</Source>
+    <Source>DebugClients/Python/coverage/env.py</Source>
+    <Source>DebugClients/Python/coverage/execfile.py</Source>
+    <Source>DebugClients/Python/coverage/files.py</Source>
+    <Source>DebugClients/Python/coverage/html.py</Source>
+    <Source>DebugClients/Python/coverage/misc.py</Source>
+    <Source>DebugClients/Python/coverage/monkey.py</Source>
+    <Source>DebugClients/Python/coverage/parser.py</Source>
+    <Source>DebugClients/Python/coverage/phystokens.py</Source>
+    <Source>DebugClients/Python/coverage/pickle2json.py</Source>
+    <Source>DebugClients/Python/coverage/plugin.py</Source>
+    <Source>DebugClients/Python/coverage/plugin_support.py</Source>
+    <Source>DebugClients/Python/coverage/python.py</Source>
+    <Source>DebugClients/Python/coverage/pytracer.py</Source>
+    <Source>DebugClients/Python/coverage/report.py</Source>
+    <Source>DebugClients/Python/coverage/results.py</Source>
+    <Source>DebugClients/Python/coverage/summary.py</Source>
+    <Source>DebugClients/Python/coverage/templite.py</Source>
+    <Source>DebugClients/Python/coverage/test_helpers.py</Source>
+    <Source>DebugClients/Python/coverage/version.py</Source>
+    <Source>DebugClients/Python/coverage/xmlreport.py</Source>
+    <Source>DebugClients/Python/eric6dbgstub.py</Source>
+    <Source>DebugClients/Python/getpass.py</Source>
     <Source>DebugClients/__init__.py</Source>
     <Source>Debugger/BreakPointModel.py</Source>
     <Source>Debugger/BreakPointViewer.py</Source>
@@ -1652,14 +1652,14 @@
   <Interfaces/>
   <Others>
     <Other>.hgignore</Other>
-    <Other>APIs/Python/zope-2.10.7.api</Other>
-    <Other>APIs/Python/zope-2.11.2.api</Other>
-    <Other>APIs/Python/zope-3.3.1.api</Other>
     <Other>APIs/Python3/PyQt4.bas</Other>
     <Other>APIs/Python3/PyQt5.bas</Other>
     <Other>APIs/Python3/QScintilla2.bas</Other>
     <Other>APIs/Python3/eric6.api</Other>
     <Other>APIs/Python3/eric6.bas</Other>
+    <Other>APIs/Python/zope-2.10.7.api</Other>
+    <Other>APIs/Python/zope-2.11.2.api</Other>
+    <Other>APIs/Python/zope-3.3.1.api</Other>
     <Other>APIs/QSS/qss.api</Other>
     <Other>APIs/Ruby/Ruby-1.8.7.api</Other>
     <Other>APIs/Ruby/Ruby-1.8.7.bas</Other>
@@ -1668,8 +1668,8 @@
     <Other>CSSs</Other>
     <Other>CodeTemplates</Other>
     <Other>DTDs</Other>
+    <Other>DebugClients/Python3/coverage/doc</Other>
     <Other>DebugClients/Python/coverage/doc</Other>
-    <Other>DebugClients/Python3/coverage/doc</Other>
     <Other>DesignerTemplates</Other>
     <Other>Dictionaries</Other>
     <Other>Documentation/Help</Other>
@@ -2265,7 +2265,7 @@
               <string>ExcludeFiles</string>
             </key>
             <value>
-              <string>*/ThirdParty/*, */coverage/*, Ui_*.py</string>
+              <string>*/ThirdParty/*, */coverage/*, Ui_*.py, */Examples/*</string>
             </value>
             <key>
               <string>SlotsAreUsed</string>

eric ide

mercurial