2 |
2 |
3 # Copyright (c) 2010 - 2020 Detlev Offenbach <detlev@die-offenbachs.de> |
3 # Copyright (c) 2010 - 2020 Detlev Offenbach <detlev@die-offenbachs.de> |
4 # |
4 # |
5 # Original (c) 2005 Divmod, Inc. See __init__.py file for details |
5 # Original (c) 2005 Divmod, Inc. See __init__.py file for details |
6 # |
6 # |
7 # This module is based on pyflakes for Python2 and Python3, but was modified to |
7 # This module is based on pyflakes, but was modified to |
8 # be integrated into eric6 |
8 # be integrated into eric6 |
9 |
9 |
10 """ |
10 """ |
11 Module providing the class Message and its subclasses. |
11 Module providing the class Message and its subclasses. |
12 """ |
12 """ |
488 """ |
488 """ |
489 message_id = 'F27' |
489 message_id = 'F27' |
490 message = 'too many expressions in star-unpacking assignment' |
490 message = 'too many expressions in star-unpacking assignment' |
491 |
491 |
492 |
492 |
|
493 class IfTuple(Message): |
|
494 """ |
|
495 Class defining the "non-empty tuple literal" message. |
|
496 |
|
497 Conditional test is a non-empty tuple literal, which are always True. |
|
498 """ |
|
499 message_id = 'F49' |
|
500 message = ( |
|
501 '\'if tuple literal\' is always true, perhaps remove accidental comma?' |
|
502 ) |
|
503 |
|
504 |
493 class AssertTuple(Message): |
505 class AssertTuple(Message): |
494 """ |
506 """ |
495 Class defining the "tuple assertion" message. |
507 Class defining the "tuple assertion" message. |
496 |
508 |
497 Assertion test is a tuple, which are always True. |
509 Assertion test is a tuple, which are always True. |