Utilities/py3flakes/messages.py

branch
Py2 comp.
changeset 3065
070b35dde35e
parent 3058
0a02c433f52d
child 3161
06f57a834adf
equal deleted inserted replaced
3061:1c0ea3a87390 3065:070b35dde35e
9 9
10 """ 10 """
11 Module implementing the messages for py3flakes. 11 Module implementing the messages for py3flakes.
12 """ 12 """
13 13
14
14 def QT_TRANSLATE_NOOP(mod, txt): 15 def QT_TRANSLATE_NOOP(mod, txt):
15 """ 16 """
16 Function to tell 'lupdate' which strings to keep for translation. 17 Function to tell 'lupdate' which strings to keep for translation.
17 18
18 @param mod module name 19 @param mod module name
162 163
163 class UndefinedExport(Message): 164 class UndefinedExport(Message):
164 """ 165 """
165 Class defining the "Undefined Export" message. 166 Class defining the "Undefined Export" message.
166 """ 167 """
167 message = QT_TRANSLATE_NOOP('py3Flakes', 168 message = QT_TRANSLATE_NOOP(
169 'py3Flakes',
168 'Undefined name {0!r} in __all__.') 170 'Undefined name {0!r} in __all__.')
169 171
170 def __init__(self, filename, lineno, name): 172 def __init__(self, filename, lineno, name):
171 """ 173 """
172 Constructor 174 Constructor

eric ide

mercurial