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

branch
maintenance
changeset 7642
72721823d453
parent 7639
422fd05e9c91
child 7923
91e843545d9a
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Sun May 31 17:26:46 2020 +0200
+++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Sat Jul 04 11:45:34 2020 +0200
@@ -4,7 +4,7 @@
 #
 # Original (c) 2005 Divmod, Inc.  See __init__.py file for details
 #
-# This module is based on pyflakes for Python2 and Python3, but was modified to
+# This module is based on pyflakes, but was modified to
 # be integrated into eric6
 
 """
@@ -490,6 +490,18 @@
     message = 'too many expressions in star-unpacking assignment'
 
 
+class IfTuple(Message):
+    """
+    Class defining the "non-empty tuple literal" message.
+    
+    Conditional test is a non-empty tuple literal, which are always True.
+    """
+    message_id = 'F49'
+    message = (
+        '\'if tuple literal\' is always true, perhaps remove accidental comma?'
+    )
+
+
 class AssertTuple(Message):
     """
     Class defining the "tuple assertion" message.
@@ -822,6 +834,3 @@
     """
     message_id = 'F48'
     message = "'...' %% ... `*` specifier requires sequence"
-
-#
-# eflag: noqa = M702

eric ide

mercurial