diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-07-30 18:05:31 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-07-30 18:05:31 +0200 |
commit | f5fb829be4799fedd0baae5714c52c1a233805e9 (patch) | |
tree | 3cb160f8115e94519ffffa88db60c739d684918e | |
parent | 49e9ff17c27b36ed722c95c7d911fc5424d31e9c (diff) | |
download | pylint-f5fb829be4799fedd0baae5714c52c1a233805e9.tar.gz |
get_msg_display_string always return symbolic name
-rw-r--r-- | test/messages/func_i0011.txt | 2 | ||||
-rw-r--r-- | test/messages/func_i0020.txt | 2 | ||||
-rw-r--r-- | utils.py | 6 |
3 files changed, 3 insertions, 7 deletions
diff --git a/test/messages/func_i0011.txt b/test/messages/func_i0011.txt index 4b5ef23..87c1f1f 100644 --- a/test/messages/func_i0011.txt +++ b/test/messages/func_i0011.txt @@ -1,2 +1,2 @@ I: 1: Locally disabling W0404 -I: 1: Useless suppression of W0404 +I: 1: Useless suppression of 'reimported' diff --git a/test/messages/func_i0020.txt b/test/messages/func_i0020.txt index 5a9ef97..e25be4e 100644 --- a/test/messages/func_i0020.txt +++ b/test/messages/func_i0020.txt @@ -1,2 +1,2 @@ I: 7: Locally disabling W0612 -I: 8: Suppressed W0612 (from line 7) +I: 8: Suppressed 'unused-variable' (from line 7) @@ -319,11 +319,7 @@ class MessagesHandlerMixIn(object): Can be just the message ID or the ID and the symbol. """ - if self.config.symbols: - symbol = self.check_message_id(msgid).symbol - if symbol: - msgid += '(%s)' % symbol - return msgid + return repr(self.check_message_id(msgid).symbol) def get_message_state_scope(self, msgid, line=None): """Returns the scope at which a message was enabled/disabled.""" |