Did some code style issues. QtWebEngine

Thu, 10 Mar 2016 20:02:45 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 10 Mar 2016 20:02:45 +0100
branch
QtWebEngine
changeset 4831
bf53c06fa0fb
parent 4827
778ccdf3417e
child 4832
6032ba9fdcc7

Did some code style issues.

DebugClients/Python/DebugClientThreads.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientThreads.py file | annotate | diff | comparison | revisions
DocumentationTools/ModuleDocumentor.py file | annotate | diff | comparison | revisions
DocumentationTools/TemplatesListsStyle.py file | annotate | diff | comparison | revisions
DocumentationTools/TemplatesListsStyleCSS.py file | annotate | diff | comparison | revisions
Plugins/AboutPlugin/AboutDialog.py file | annotate | diff | comparison | revisions
eric6.e4p file | annotate | diff | comparison | revisions
eric6_browser.py file | annotate | diff | comparison | revisions
install.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientThreads.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/DebugClients/Python/DebugClientThreads.py	Thu Mar 10 20:02:45 2016 +0100
@@ -200,4 +200,4 @@
 
 #
 # eflag: FileType = Python2
-# eflag: noqa = M601, M702
+# eflag: noqa = M601, M702, E402
--- a/DebugClients/Python3/DebugClientThreads.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/DebugClients/Python3/DebugClientThreads.py	Thu Mar 10 20:02:45 2016 +0100
@@ -199,4 +199,4 @@
     debugClient.main()
 
 #
-# eflag: noqa = M702
+# eflag: noqa = M702, E402
--- a/DocumentationTools/ModuleDocumentor.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/DocumentationTools/ModuleDocumentor.py	Thu Mar 10 20:02:45 2016 +0100
@@ -20,7 +20,7 @@
 from Utilities.ModuleParser import RB_SOURCE, Function
 
 _signal = re.compile(
-r"""
+    r"""
     ^@signal [ \t]+
     (?P<SignalName1>
         [a-zA-Z_] \w* [ \t]* \( [^)]* \)
@@ -35,7 +35,7 @@
     """, re.VERBOSE | re.DOTALL | re.MULTILINE).search
 
 _event = re.compile(
-r"""
+    r"""
     ^@event [ \t]+
     (?P<EventName1>
         [a-zA-Z_] \w* [ \t]* \( [^)]* \)
--- a/DocumentationTools/TemplatesListsStyle.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/DocumentationTools/TemplatesListsStyle.py	Thu Mar 10 20:02:45 2016 +0100
@@ -294,3 +294,6 @@
 <td><a style="color:{LinkColor}" href="{{Link}}">{{Name}}</a></td>
 <td>{{Description}}</td>
 </tr>'''
+
+#
+# eflag: noqa = E122
--- a/DocumentationTools/TemplatesListsStyleCSS.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/DocumentationTools/TemplatesListsStyleCSS.py	Thu Mar 10 20:02:45 2016 +0100
@@ -273,3 +273,6 @@
 <td><a href="{Link}">{Name}</a></td>
 <td>{Description}</td>
 </tr>'''
+
+#
+# eflag: noqa = E122
--- a/Plugins/AboutPlugin/AboutDialog.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/Plugins/AboutPlugin/AboutDialog.py	Thu Mar 10 20:02:45 2016 +0100
@@ -39,7 +39,7 @@
          UI.Info.FeatureAddress)
 
 authorsText = \
-"""\
+    """
 Detlev Offenbach
     Project Manager, Maintainer and German translation
     
@@ -103,7 +103,7 @@
 And all the people who reported bugs and made suggestions."""
 
 licenseText = (
-"""Eric is {0}
+    """Eric is {0}
 
 You may use, distribute and copy Eric under the terms of the GNU
 General Public License as published by the Free Software Foundation,
--- a/eric6.e4p	Thu Mar 10 18:57:46 2016 +0100
+++ b/eric6.e4p	Thu Mar 10 20:02:45 2016 +0100
@@ -26,6 +26,54 @@
     <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>
@@ -75,54 +123,6 @@
     <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>
@@ -1891,14 +1891,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>
@@ -1907,8 +1907,8 @@
     <Other>CSSs</Other>
     <Other>CodeTemplates</Other>
     <Other>DTDs</Other>
+    <Other>DebugClients/Python/coverage/doc</Other>
     <Other>DebugClients/Python3/coverage/doc</Other>
-    <Other>DebugClients/Python/coverage/doc</Other>
     <Other>DesignerTemplates</Other>
     <Other>Dictionaries</Other>
     <Other>Documentation/Help</Other>
@@ -2421,7 +2421,7 @@
               <string>ExcludeMessages</string>
             </key>
             <value>
-              <string>C101, E265, M811, N802, N803, N807, N808, N821, W293</string>
+              <string>C101, E265, E266, M811, N802, N803, N807, N808, N821, W293, E402</string>
             </value>
             <key>
               <string>FixCodes</string>
--- a/eric6_browser.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/eric6_browser.py	Thu Mar 10 20:02:45 2016 +0100
@@ -115,7 +115,7 @@
     options = [
         ("--config=configDir",
          "use the given directory as the one containing the config files"),
-        ("--private",  "start the browser in private browsing mode"),
+        ("--private", "start the browser in private browsing mode"),
         ("--search=word", "search for the given word"),
         ("--settings=settingsDir",
          "use the given directory to store the settings files"),
--- a/install.py	Thu Mar 10 18:57:46 2016 +0100
+++ b/install.py	Thu Mar 10 20:02:45 2016 +0100
@@ -440,7 +440,7 @@
             os.mkdir(pdir, 0o755)
         f = open(fname, "w")
         f.write(
-'''# -*- coding: utf-8 -*-
+    '''# -*- coding: utf-8 -*-
 
 """
 Package containing the global plugins.
@@ -513,7 +513,8 @@
                      "/usr/share/applications/eric6_webbrowser" + marker +
                      ".desktop",
                      "/usr/share/applications/eric6_browser" + marker +
-                     ".desktop",]:
+                     ".desktop",
+                     ]:
             if os.path.exists(name):
                 os.remove(name)
     

eric ide

mercurial