Simplify translations: corrected some example values.

Thu, 08 Apr 2021 17:24:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 08 Apr 2021 17:24:05 +0200
changeset 8203
dbcdb07cb600
parent 8202
df194f43119c
child 8204
fd477cded1c1

Simplify translations: corrected some example values.

eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py file | annotate | diff | comparison | revisions
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Tue Apr 06 17:53:39 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Thu Apr 08 17:24:05 2021 +0200
@@ -147,13 +147,12 @@
     "Y112": ["FOO", "foo"],
     "Y113": ["foo"],
     "Y114": ["foo > 42", "bar < 42"],
-    "Y116": ["mapping.get(foo, 42)"],
+    "Y116": ["bar_dict.get(foo, 42)"],
     "Y117": ["with Foo() as foo, Bar() as bar:"],
     "Y118": ["foo", "bar_dict"],
     "Y119": ["Foo"],
     "Y120": ["Foo"],
-    
-    "Y131": ["foo += 42", "foo = foo + 42"],
+    "Y121": ["foo += 42", "foo = foo + 42"],
     
     # Comparations
     "Y201": ["foo", "bar"],
@@ -165,7 +164,7 @@
     "Y207": ["foo", "bar"],
     "Y208": ["foo"],
     
-    "Y211": ["foo", "bool(foo"],
+    "Y211": ["foo", "bool(foo)"],
     "Y212": ["foo", "not foo"],
     "Y213": ["foo", "bar"],
     

eric ide

mercurial