Sat, 31 Mar 2018 13:09:32 +0200
Adjusted the code style checking parameters and fixed some code style issues.
CxFreeze/CxfreezeConfigDialog.py | file | annotate | diff | comparison | revisions | |
PluginCxFreeze.e4p | file | annotate | diff | comparison | revisions |
--- a/CxFreeze/CxfreezeConfigDialog.py Sun Jan 21 15:01:21 2018 +0100 +++ b/CxFreeze/CxfreezeConfigDialog.py Sat Mar 31 13:09:32 2018 +0200 @@ -170,9 +170,7 @@ # combine it with the values of parms if parms is not None: - for key, value in parms.items(): - if key in self.parameters: - self.parameters[key] = parms[key] + self.parameters.update(parms) self.exe = exe self.cxfreezeExecCombo.addItems(exe) @@ -435,7 +433,7 @@ if not os.path.exists(modpath): # but if it failed search in the whole directory tree modpath = None - for dirpath, dirnames, filenames in os.walk(dirname): + for dirpath, dirnames, _ in os.walk(dirname): if 'cx_Freeze' in dirnames: modpath = os.path.join(dirpath, "cx_Freeze") break
--- a/PluginCxFreeze.e4p Sun Jan 21 15:01:21 2018 +0100 +++ b/PluginCxFreeze.e4p Sat Mar 31 13:09:32 2018 +0200 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Project SYSTEM "Project-5.1.dtd"> <!-- eric project file for project PluginCxFreeze --> -<!-- Copyright (C) 2017 Detlev Offenbach, detlev@die-offenbachs.de --> +<!-- Copyright (C) 2018 Detlev Offenbach, detlev@die-offenbachs.de --> <Project version="5.1"> <Language>en</Language> <Hash>e6cc5d1be724a6f9b38cea1b3785946161f4baeb</Hash> @@ -41,8 +41,6 @@ <Translation>CxFreeze/i18n/cxfreeze_ru.qm</Translation> <Translation>CxFreeze/i18n/cxfreeze_ru.ts</Translation> </Translations> - <Resources/> - <Interfaces/> <Others> <Other>.hgignore</Other> <Other>ChangeLog</Other> @@ -292,7 +290,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>