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

branch
maintenance
changeset 7642
72721823d453
parent 7639
422fd05e9c91
child 7923
91e843545d9a
equal deleted inserted replaced
7608:f7cb83647621 7642:72721823d453
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.
820 832
821 Indicates that a percent format expected a sequence. 833 Indicates that a percent format expected a sequence.
822 """ 834 """
823 message_id = 'F48' 835 message_id = 'F48'
824 message = "'...' %% ... `*` specifier requires sequence" 836 message = "'...' %% ... `*` specifier requires sequence"
825
826 #
827 # eflag: noqa = M702

eric ide

mercurial