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

changeset 8202
df194f43119c
parent 8195
db7f2badd374
child 8203
dbcdb07cb600
diff -r a1149b1b4456 -r df194f43119c eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Mon Apr 05 10:55:02 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Tue Apr 06 17:53:39 2021 +0200
@@ -76,6 +76,9 @@
     "Y120": QCoreApplication.translate(
         "SimplifyChecker",
         '''Use "class {0}:" instead of "class {0}(object):"'''),
+    "Y121": QCoreApplication.translate(
+        "SimplifyChecker",
+        '''Use "{0}" instead of "{1}"'''),
     
     # Comparations
     "Y201": QCoreApplication.translate(
@@ -150,6 +153,8 @@
     "Y119": ["Foo"],
     "Y120": ["Foo"],
     
+    "Y131": ["foo += 42", "foo = foo + 42"],
+    
     # Comparations
     "Y201": ["foo", "bar"],
     "Y202": ["foo", "bar"],

eric ide

mercurial