Adjusted the code style checking parameters and fixed some code style issues.

Sat, 31 Mar 2018 13:38:59 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 31 Mar 2018 13:38:59 +0200
changeset 20
a7ac91a1a57e
parent 19
9534f084fec6
child 21
519158f78a41

Adjusted the code style checking parameters and fixed some code style issues.

PluginPyInstaller.e4p file | annotate | diff | comparison | revisions
PyInstaller/PyInstallerConfigDialog.py file | annotate | diff | comparison | revisions
--- a/PluginPyInstaller.e4p	Sat Mar 03 17:17:52 2018 +0100
+++ b/PluginPyInstaller.e4p	Sat Mar 31 13:38:59 2018 +0200
@@ -292,7 +292,7 @@
               <string>ExcludeMessages</string>
             </key>
             <value>
-              <string>C101, E265, E266, E305, E402, M811, N802, N803, N807, N808, N821, W293</string>
+              <string>C101, E265, E266, E305, E402, M811, N802, N803, N807, N808, N821, W293, M201</string>
             </value>
             <key>
               <string>FixCodes</string>
--- a/PyInstaller/PyInstallerConfigDialog.py	Sat Mar 03 17:17:52 2018 +0100
+++ b/PyInstaller/PyInstallerConfigDialog.py	Sat Mar 31 13:38:59 2018 +0200
@@ -104,9 +104,7 @@
         
         # combine it with the values of params
         if params is not None:
-            for key, value in params.items():
-                if key in self.__parameters:
-                    self.__parameters[key] = params[key]
+            self.__parameters.update(params)
         
         # initialize general tab
         if mode == "installer" and bool(self.__parameters["pyinstaller"]):

eric ide

mercurial