--- 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)