eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/translations.py

branch
maintenance
changeset 7642
72721823d453
parent 7635
0cdead130a81
child 7709
7c3968742fd2
diff -r f7cb83647621 -r 72721823d453 eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/translations.py
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/translations.py	Sun May 31 17:26:46 2020 +0200
+++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/translations.py	Sat Jul 04 11:45:34 2020 +0200
@@ -162,6 +162,10 @@
     'F48': QCoreApplication.translate(
         'pyFlakes',
         "'...' % ... `*` specifier requires sequence"),
+    'F49': QCoreApplication.translate(
+        'pyFlakes',
+        "'if tuple literal' is always true, perhaps remove accidental comma?"
+    ),
 }
 
 
@@ -175,7 +179,6 @@
     @return translated and formatted message (string)
     """
     if message_id in _messages:
-        # Avoid leading "u" at Python2 unicode strings
         msg = _messages[message_id].replace("{0!r}", "'{0}'")
         msg = msg.replace("{1!r}", "'{1}'")
         return msg.format(*message_args)

eric ide

mercurial