517 "'sys.maxint' is not defined in Python 3 - use 'sys.maxsize'"), |
517 "'sys.maxint' is not defined in Python 3 - use 'sys.maxsize'"), |
518 "M505": QCoreApplication.translate( |
518 "M505": QCoreApplication.translate( |
519 "MiscellaneousChecker", |
519 "MiscellaneousChecker", |
520 "'BaseException.message' has been deprecated as of Python 2.6 and is" |
520 "'BaseException.message' has been deprecated as of Python 2.6 and is" |
521 " removed in Python 3 - use 'str(e)'"), |
521 " removed in Python 3 - use 'str(e)'"), |
|
522 "M506": QCoreApplication.translate( |
|
523 "MiscellaneousChecker", |
|
524 "assigning to 'os.environ' does not clear the environment -" |
|
525 " use 'os.environ.clear()'"), |
|
526 "M507": QCoreApplication.translate( |
|
527 "MiscellaneousChecker", |
|
528 "loop control variable {0} not used within the loop body -" |
|
529 " start the name with an underscore"), |
522 "M511": QCoreApplication.translate( |
530 "M511": QCoreApplication.translate( |
523 "MiscellaneousChecker", |
531 "MiscellaneousChecker", |
524 "Python 3 does not include '.iter*' methods on dictionaries"), |
532 "Python 3 does not include '.iter*' methods on dictionaries"), |
525 "M512": QCoreApplication.translate( |
533 "M512": QCoreApplication.translate( |
526 "MiscellaneousChecker", |
534 "MiscellaneousChecker", |
527 "Python 3 does not include '.view*' methods on dictionaries"), |
535 "Python 3 does not include '.view*' methods on dictionaries"), |
528 "M513": QCoreApplication.translate( |
536 "M513": QCoreApplication.translate( |
529 "MiscellaneousChecker", |
537 "MiscellaneousChecker", |
530 "'.next()' does not exist in Python 3"), |
538 "'.next()' does not exist in Python 3"), |
|
539 "M514": QCoreApplication.translate( |
|
540 "MiscellaneousChecker", |
|
541 "'__metaclass__' does nothing on Python 3 -" |
|
542 " use 'class MyClass(BaseClass, metaclass=...)'"), |
531 |
543 |
532 "M601": QCoreApplication.translate( |
544 "M601": QCoreApplication.translate( |
533 "MiscellaneousChecker", |
545 "MiscellaneousChecker", |
534 "found {0} formatter"), |
546 "found {0} formatter"), |
535 "M611": QCoreApplication.translate( |
547 "M611": QCoreApplication.translate( |