42 'F09': QCoreApplication.translate( |
42 'F09': QCoreApplication.translate( |
43 'pyFlakes', |
43 'pyFlakes', |
44 'Redefinition of {0!r} from line {1!r}.'), |
44 'Redefinition of {0!r} from line {1!r}.'), |
45 'F10': QCoreApplication.translate( |
45 'F10': QCoreApplication.translate( |
46 'pyFlakes', |
46 'pyFlakes', |
47 'Future import(s) {0!r} after other statements.'), |
47 'from __future__ imports must occur at the beginning of the file'), |
48 'F11': QCoreApplication.translate( |
48 'F11': QCoreApplication.translate( |
49 'pyFlakes', |
49 'pyFlakes', |
50 'Local variable {0!r} is assigned to but never used.'), |
50 'Local variable {0!r} is assigned to but never used.'), |
51 'F12': QCoreApplication.translate( |
51 'F12': QCoreApplication.translate( |
52 'pyFlakes', |
52 'pyFlakes', |
58 'pyFlakes', |
58 'pyFlakes', |
59 "'return' with argument inside generator"), |
59 "'return' with argument inside generator"), |
60 'F15': QCoreApplication.translate( |
60 'F15': QCoreApplication.translate( |
61 'pyFlakes', |
61 'pyFlakes', |
62 "'return' outside function"), |
62 "'return' outside function"), |
|
63 'F16': QCoreApplication.translate( |
|
64 'pyFlakes', |
|
65 "'from {0} import *' only allowed at module level"), |
|
66 'F17': QCoreApplication.translate( |
|
67 'pyFlakes', |
|
68 "{0} may be undefined, or defined from star imports: {1}"), |
|
69 'F18': QCoreApplication.translate( |
|
70 'pyFlakes', |
|
71 "Dictionary key {0!r} repeated with different values"), |
|
72 'F19': QCoreApplication.translate( |
|
73 'pyFlakes', |
|
74 "Dictionary key variable {0} repeated with different values"), |
|
75 'F20': QCoreApplication.translate( |
|
76 'pyFlakes', |
|
77 "Future feature {0} is not defined"), |
|
78 'F21': QCoreApplication.translate( |
|
79 'pyFlakes', |
|
80 "'yield' outside function"), |
|
81 'F22': QCoreApplication.translate( |
|
82 'pyFlakes', |
|
83 "'continue' not properly in loop"), |
|
84 'F23': QCoreApplication.translate( |
|
85 'pyFlakes', |
|
86 "'break' outside loop"), |
|
87 'F24': QCoreApplication.translate( |
|
88 'pyFlakes', |
|
89 "'continue' not supported inside 'finally' clause"), |
|
90 'F25': QCoreApplication.translate( |
|
91 'pyFlakes', |
|
92 "Default 'except:' must be last"), |
|
93 'F26': QCoreApplication.translate( |
|
94 'pyFlakes', |
|
95 "Two starred expressions in assignment"), |
|
96 'F27': QCoreApplication.translate( |
|
97 'pyFlakes', |
|
98 "Too many expressions in star-unpacking assignment"), |
|
99 'F28': QCoreApplication.translate( |
|
100 'pyFlakes', |
|
101 "Assertion is always true, perhaps remove parentheses?"), |
63 } |
102 } |
64 |
103 |
65 |
104 |
66 def getTranslatedFlakesMessage(message_id, message_args): |
105 def getTranslatedFlakesMessage(message_id, message_args): |
67 """ |
106 """ |