Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 6183
29384109306c
parent 6182
f293e95b914d
child 6184
789e88d94899
equal deleted inserted replaced
6182:f293e95b914d 6183:29384109306c
500 "MiscellaneousChecker", 500 "MiscellaneousChecker",
501 'unnecessary list comprehension - "{0}" can take a generator'), 501 'unnecessary list comprehension - "{0}" can take a generator'),
502 "M201": QCoreApplication.translate( 502 "M201": QCoreApplication.translate(
503 "MiscellaneousChecker", 503 "MiscellaneousChecker",
504 "sort keys - '{0}' should be before '{1}'"), 504 "sort keys - '{0}' should be before '{1}'"),
505 "M501": QCoreApplication.translate(
506 "MiscellaneousChecker",
507 "Python does not support the unary prefix increment"),
508 "M502": QCoreApplication.translate(
509 "MiscellaneousChecker",
510 "using .strip() with multi-character strings is misleading"),
511 "M503": QCoreApplication.translate(
512 "MiscellaneousChecker",
513 """using 'hasattr(x, "__call__")' to test if 'x' is callable is"""
514 """ unreliable"""),
515 "M504": QCoreApplication.translate(
516 "MiscellaneousChecker",
517 "'sys.maxint' is not defined in Python 3 - use 'sys.maxsize'"),
518 "M505": QCoreApplication.translate(
519 "MiscellaneousChecker",
520 "'BaseException.message' has been deprecated as of Python 2.6 and is"
521 " removed in Python 3 - use 'str(e)'"),
522 "M511": QCoreApplication.translate(
523 "MiscellaneousChecker",
524 "Python 3 does not include '.iter*' methods on dictionaries"),
525 "M512": QCoreApplication.translate(
526 "MiscellaneousChecker",
527 "Python 3 does not include '.view*' methods on dictionaries"),
528 "M513": QCoreApplication.translate(
529 "MiscellaneousChecker",
530 "'.next()' does not exist in Python 3"),
531
505 "M601": QCoreApplication.translate( 532 "M601": QCoreApplication.translate(
506 "MiscellaneousChecker", 533 "MiscellaneousChecker",
507 "found {0} formatter"), 534 "found {0} formatter"),
508 "M611": QCoreApplication.translate( 535 "M611": QCoreApplication.translate(
509 "MiscellaneousChecker", 536 "MiscellaneousChecker",
569 "MiscellaneousChecker", 596 "MiscellaneousChecker",
570 "mutable default argument of type {0}"), 597 "mutable default argument of type {0}"),
571 "M822": QCoreApplication.translate( 598 "M822": QCoreApplication.translate(
572 "MiscellaneousChecker", 599 "MiscellaneousChecker",
573 "mutable default argument of type {0}"), 600 "mutable default argument of type {0}"),
601 "M823": QCoreApplication.translate(
602 "MiscellaneousChecker",
603 "mutable default argument of function call '{0}'"),
574 "M901": QCoreApplication.translate( 604 "M901": QCoreApplication.translate(
575 "MiscellaneousChecker", 605 "MiscellaneousChecker",
576 "{0}: {1}"), 606 "{0}: {1}"),
577 607
578 # CodeStyleFixer messages 608 # CodeStyleFixer messages
770 "M701": ["print_function, unicode_literals", "print_function"], 800 "M701": ["print_function, unicode_literals", "print_function"],
771 "M702": ["print_function, unicode_literals"], 801 "M702": ["print_function, unicode_literals"],
772 "M711": ["lgettext"], 802 "M711": ["lgettext"],
773 "M821": ["Dict"], 803 "M821": ["Dict"],
774 "M822": ["Call"], 804 "M822": ["Call"],
805 "M823": ["dict"],
775 "M901": ["SyntaxError", "Invalid Syntax"], 806 "M901": ["SyntaxError", "Invalid Syntax"],
776 "FWRITE_ERROR": ["IOError"], 807 "FWRITE_ERROR": ["IOError"],
777 } 808 }
778 809
779 810

eric ide

mercurial