5 # Original (c) 2005 Divmod, Inc. See LICENSE file for details |
5 # Original (c) 2005 Divmod, Inc. See LICENSE file for details |
6 # |
6 # |
7 # This module is based on pyflakes for Python2 but was heavily hacked to |
7 # This module is based on pyflakes for Python2 but was heavily hacked to |
8 # work with Python3 and Qt (translatable messages) |
8 # work with Python3 and Qt (translatable messages) |
9 |
9 |
|
10 """ |
|
11 Module implementing the messages for py3flakes. |
|
12 """ |
10 |
13 |
11 def QT_TRANSLATE_NOOP(mod, txt): |
14 def QT_TRANSLATE_NOOP(mod, txt): |
12 """ |
15 """ |
13 Function to tell 'lupdate' which strings to keep for translation. |
16 Function to tell 'lupdate' which strings to keep for translation. |
14 |
17 |
41 Special method return a string representation of the instance object. |
44 Special method return a string representation of the instance object. |
42 |
45 |
43 @return string representation of the object (string) |
46 @return string representation of the object (string) |
44 """ |
47 """ |
45 return '{0}:{1} {2}'.format( |
48 return '{0}:{1} {2}'.format( |
46 self.filename, self.lineno, self.message.format(*self.message_args)) |
49 self.filename, self.lineno, |
|
50 self.message.format(*self.message_args)) |
47 |
51 |
48 def getMessageData(self): |
52 def getMessageData(self): |
49 """ |
53 """ |
50 Public method to get the individual message data elements. |
54 Public method to get the individual message data elements. |
51 |
55 |