src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py

branch
eric7
changeset 10164
b2fbf59d889f
parent 9653
e67609152c5e
child 10437
2f70ca07f0af
equal deleted inserted replaced
10163:bab2f909e60b 10164:b2fbf59d889f
432 432
433 message_id = "F21" 433 message_id = "F21"
434 message = "'yield' outside function" 434 message = "'yield' outside function"
435 435
436 436
437 # For whatever reason, Python gives different error messages for these two. We
438 # match the Python error message exactly.
439 class ContinueOutsideLoop(Message): 437 class ContinueOutsideLoop(Message):
440 """ 438 """
441 Class defining the "Continue outside loop" message. 439 Class defining the "Continue outside loop" message.
442 440
443 Indicates a continue statement outside of a while or for loop. 441 Indicates a continue statement outside of a while or for loop.
454 Indicates a break statement outside of a while or for loop. 452 Indicates a break statement outside of a while or for loop.
455 """ 453 """
456 454
457 message_id = "F23" 455 message_id = "F23"
458 message = "'break' outside loop" 456 message = "'break' outside loop"
459
460
461 class ContinueInFinally(Message):
462 """
463 Class defining the "Continue in finally block" message.
464
465 Indicates a continue statement in a finally block in a while or for loop.
466 """
467
468 message_id = "F24"
469 message = "'continue' not supported inside 'finally' clause"
470 457
471 458
472 class DefaultExceptNotLast(Message): 459 class DefaultExceptNotLast(Message):
473 """ 460 """
474 Class defining the "Default except not being the last" message. 461 Class defining the "Default except not being the last" message.

eric ide

mercurial