Fixed some code style issues and one coding issue.

Thu, 01 Oct 2020 17:46:14 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 01 Oct 2020 17:46:14 +0200
changeset 7732
4c9cf117acf6
parent 7731
8ec83a027a21
child 7733
eac6b485e9e8

Fixed some code style issues and one coding issue.

eric6/Documentation/Help/source.qch file | annotate | diff | comparison | revisions
eric6/Documentation/Source/eric6.Preferences.ConfigurationPages.EditorLanguageTabIndentOverrideDialog.html file | annotate | diff | comparison | revisions
eric6/Documentation/Source/eric6.WebBrowser.Tools.WebBrowserTools.html file | annotate | diff | comparison | revisions
eric6/Preferences/ConfigurationPages/EditorLanguageTabIndentOverrideDialog.py file | annotate | diff | comparison | revisions
eric6/UI/PythonDisViewer.py file | annotate | diff | comparison | revisions
eric6/WebBrowser/Tools/WebBrowserTools.py file | annotate | diff | comparison | revisions
setup.py file | annotate | diff | comparison | revisions
Binary file eric6/Documentation/Help/source.qch has changed
--- a/eric6/Documentation/Source/eric6.Preferences.ConfigurationPages.EditorLanguageTabIndentOverrideDialog.html	Thu Oct 01 17:39:16 2020 +0200
+++ b/eric6/Documentation/Source/eric6.Preferences.ConfigurationPages.EditorLanguageTabIndentOverrideDialog.html	Thu Oct 01 17:46:14 2020 +0200
@@ -115,20 +115,20 @@
 flag indicating the edit mode (Note: in edit mode
             the language is fixed)
 </dd>
-<dt><i>languages</i> (list of str)</dt>
+<dt><i>languages=</i> (list of str)</dt>
 <dd>
 list of existing languages (if in add mode) or
             a list containing the language to be edited
 </dd>
-<dt><i>tabWidth</i> (int)</dt>
+<dt><i>tabWidth=</i> (int)</dt>
 <dd>
 tab width to be set
 </dd>
-<dt><i>indentWidth</i> (int)</dt>
+<dt><i>indentWidth=</i> (int)</dt>
 <dd>
 indentation width to be set
 </dd>
-<dt><i>parent</i> (QWidget)</dt>
+<dt><i>parent=</i> (QWidget)</dt>
 <dd>
 reference to the parent widget
 </dd>
@@ -140,6 +140,13 @@
 <p>
         Private method to populate the language combo boxes.
 </p>
+<dl>
+
+<dt><i>filterLanguages</i> (list of str)</dt>
+<dd>
+list of languages to be filtered out
+</dd>
+</dl>
 <a NAME="EditorLanguageTabIndentOverrideDialog.__updateOkButton" ID="EditorLanguageTabIndentOverrideDialog.__updateOkButton"></a>
 <h4>EditorLanguageTabIndentOverrideDialog.__updateOkButton</h4>
 <b>__updateOkButton</b>(<i></i>)
--- a/eric6/Documentation/Source/eric6.WebBrowser.Tools.WebBrowserTools.html	Thu Oct 01 17:39:16 2020 +0200
+++ b/eric6/Documentation/Source/eric6.WebBrowser.Tools.WebBrowserTools.html	Thu Oct 01 17:46:14 2020 +0200
@@ -397,6 +397,10 @@
 <dd>
 pixmap to be converted
 </dd>
+<dt><i>mimetype</i> (str)</dt>
+<dd>
+MIME type to be used
+</dd>
 </dl>
 <dl>
 <dt>Returns:</dt>
--- a/eric6/Preferences/ConfigurationPages/EditorLanguageTabIndentOverrideDialog.py	Thu Oct 01 17:39:16 2020 +0200
+++ b/eric6/Preferences/ConfigurationPages/EditorLanguageTabIndentOverrideDialog.py	Thu Oct 01 17:46:14 2020 +0200
@@ -35,14 +35,14 @@
         @keyparam editMode flag indicating the edit mode (Note: in edit mode
             the language is fixed)
         @type bool
-        @param languages list of existing languages (if in add mode) or
+        @keyparam languages list of existing languages (if in add mode) or
             a list containing the language to be edited
         @type list of str
-        @param tabWidth tab width to be set
+        @keyparam tabWidth tab width to be set
         @type int
-        @param indentWidth indentation width to be set
+        @keyparam indentWidth indentation width to be set
         @type int
-        @param parent reference to the parent widget
+        @keyparam parent reference to the parent widget
         @type QWidget
         """
         super(EditorLanguageTabIndentOverrideDialog, self).__init__(parent)
@@ -60,6 +60,9 @@
     def __populateLanguages(self, filterLanguages):
         """
         Private method to populate the language combo boxes.
+        
+        @param filterLanguages list of languages to be filtered out
+        @type list of str
         """
         import QScintilla.Lexers
         languages = list(
--- a/eric6/UI/PythonDisViewer.py	Thu Oct 01 17:39:16 2020 +0200
+++ b/eric6/UI/PythonDisViewer.py	Thu Oct 01 17:46:14 2020 +0200
@@ -436,6 +436,8 @@
         except AttributeError:
             # does not exist prior to 3.8.0
             codeInfoDict["posonlyargcount"] = 0
+        
+        return codeInfoDict
     
     def __loadDIS(self):
         """
--- a/eric6/WebBrowser/Tools/WebBrowserTools.py	Thu Oct 01 17:39:16 2020 +0200
+++ b/eric6/WebBrowser/Tools/WebBrowserTools.py	Thu Oct 01 17:46:14 2020 +0200
@@ -185,6 +185,8 @@
     
     @param pixmap pixmap to be converted
     @type QPixmap
+    @param mimetype MIME type to be used
+    @type str
     @return data: URL
     @rtype QUrl
     """
--- a/setup.py	Thu Oct 01 17:39:16 2020 +0200
+++ b/setup.py	Thu Oct 01 17:46:14 2020 +0200
@@ -53,7 +53,6 @@
     @return list of package data files
     @rtype list of str
     """
-    print(extensions)
     filesList = []
     for dirpath, _dirnames, filenames in os.walk(package):
         for fname in filenames:

eric ide

mercurial