eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py

changeset 8203
dbcdb07cb600
parent 8202
df194f43119c
child 8209
14470a65a52e
--- 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