Thu, 13 Oct 2022 17:55:37 +0200
Reformatted the code with the black tool.
--- a/scripts/install.py Wed Oct 12 19:54:22 2022 +0200 +++ b/scripts/install.py Thu Oct 13 17:55:37 2022 +0200 @@ -1215,9 +1215,7 @@ """\n""" """{0}""" """{1}""" - """exec "{2}" "-m" "eric7" "$@"\n""".format( - pathLine, dyldLine, starter - ) + """exec "{2}" "-m" "eric7" "$@"\n""".format(pathLine, dyldLine, starter) ) copyToFile(wname, wrapper) os.chmod(wname, 0o755) # secok @@ -2053,16 +2051,18 @@ os.path.join(cfg["ericPixDir"], "ericWeb48.ico"), ), ] - + if clean: # clean obsolete entries as well - entriesTemplates.extend([ - ( - "eric7 (Python {0}.{1}).lnk", - os.path.join(cfg["bindir"], "eric7_ide.cmd"), - os.path.join(cfg["ericPixDir"], "eric7.ico"), - ), - ]) + entriesTemplates.extend( + [ + ( + "eric7 (Python {0}.{1}).lnk", + os.path.join(cfg["bindir"], "eric7_ide.cmd"), + os.path.join(cfg["ericPixDir"], "eric7.ico"), + ), + ] + ) return [ (e[0].format(majorVersion, minorVersion), e[1], e[2]) for e in entriesTemplates @@ -2116,8 +2116,15 @@ optlist, args = getopt.getopt( argv[1:], "chvxza:b:d:f:", - ["clean-desktop", "help", "no-apis", "no-info", "verbose", "with-tools", - "yes"], + [ + "clean-desktop", + "help", + "no-apis", + "no-info", + "verbose", + "with-tools", + "yes", + ], ) elif sys.platform == "darwin": optlist, args = getopt.getopt(
--- a/src/eric7/DebugClients/Python/DebugClientBase.py Wed Oct 12 19:54:22 2022 +0200 +++ b/src/eric7/DebugClients/Python/DebugClientBase.py Thu Oct 13 17:55:37 2022 +0200 @@ -1672,7 +1672,7 @@ showFlag = True if filterString: filterList = filterString.split(";") - pattern="|".join(f.strip() for f in filterList) # __IGNORE_WARNING__ + pattern = "|".join(f.strip() for f in filterList) with contextlib.suppress(re.error): patternFilterObjects = re.compile(pattern) else:
--- a/src/eric7/Debugger/VariablesFilterDialog.py Wed Oct 12 19:54:22 2022 +0200 +++ b/src/eric7/Debugger/VariablesFilterDialog.py Thu Oct 13 17:55:37 2022 +0200 @@ -24,7 +24,7 @@ filters to be applied during a debugging session. Pressing 'Apply' will show the effect of the current selection on the currently shown variables. 'Reset' will reset the selection to the one the dialog was opened with. - + @signal applyFilterLists(list of str, list of str) emitted to apply the given locals and globals filters to the currently shown variables """
--- a/src/eric7/Project/ProjectOthersBrowser.py Wed Oct 12 19:54:22 2022 +0200 +++ b/src/eric7/Project/ProjectOthersBrowser.py Thu Oct 13 17:55:37 2022 +0200 @@ -171,20 +171,24 @@ return with contextlib.suppress(Exception): - cnt = self.getSelectedItemsCount([ - ProjectBrowserFileItem, - ProjectBrowserDirectoryItem, - ProjectBrowserSimpleDirectoryItem, - ]) + cnt = self.getSelectedItemsCount( + [ + ProjectBrowserFileItem, + ProjectBrowserDirectoryItem, + ProjectBrowserSimpleDirectoryItem, + ] + ) if cnt < 1: index = self.indexAt(coord) if index.isValid(): self._selectSingleItem(index) - cnt = self.getSelectedItemsCount([ - ProjectBrowserFileItem, - ProjectBrowserDirectoryItem, - ProjectBrowserSimpleDirectoryItem, - ]) + cnt = self.getSelectedItemsCount( + [ + ProjectBrowserFileItem, + ProjectBrowserDirectoryItem, + ProjectBrowserSimpleDirectoryItem, + ] + ) if cnt > 1: self.multiMenu.popup(self.mapToGlobal(coord))
--- a/src/eric7/QScintilla/APIsManager.py Wed Oct 12 19:54:22 2022 +0200 +++ b/src/eric7/QScintilla/APIsManager.py Thu Oct 13 17:55:37 2022 +0200 @@ -203,8 +203,7 @@ # use lower case language apiDir = os.path.join(apisDir, self.__lexer.language().lower()) fnames = { - os.path.join(apiDir, f) - for f in glob.glob("*.api", root_dir=apiDir) + os.path.join(apiDir, f) for f in glob.glob("*.api", root_dir=apiDir) } # combine with the QScintilla standard behavior fnames |= {