diff -r 471c5a263d53 -r 36448ca469c2 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py --- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py Thu Jul 28 19:44:54 2022 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py Fri Jul 29 16:29:31 2022 +0200 @@ -86,7 +86,7 @@ "SimplifyChecker", '''Use "{0}.get({1})" instead of "if {1} in {0}: {0}[{1}]"''' ), "Y123": QCoreApplication.translate( - "SimplifyChecker", '''Use "{0} = {1}.get({2}, {3})" instead of an if-block''' + "SimplifyChecker", """Use "{0} = {1}.get({2}, {3})" instead of an if-block""" ), # Python-specifics not part of flake8-simplify "Y181": QCoreApplication.translate( @@ -154,7 +154,6 @@ "Y402": QCoreApplication.translate( "SimplifyChecker", """Use keyword-argument instead of magic number""" ), - "Y901": QCoreApplication.translate( "SimplifyChecker", '''Use "{0}" instead of "{1}"''' ), @@ -217,12 +216,12 @@ # Opinionated "Y301": ["42", "foo"], # General Code Style - # Additional checks "Y901": ["foo == bar", "bool(foo == bar)"], "Y904": ["foo"], "Y905": [ - """["de", "com", "net", "org"]""", """domains = "de com net org".split()""" + """["de", "com", "net", "org"]""", + """domains = "de com net org".split()""", ], "Y906": ["os.path.join(a, b, c)", "os.path.join(a,os.path.join(b,c))"], "Y907": ["int", "Union[int, None]"],