summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-30 18:05:31 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-30 18:05:31 +0200
commitf5fb829be4799fedd0baae5714c52c1a233805e9 (patch)
tree3cb160f8115e94519ffffa88db60c739d684918e /utils.py
parent49e9ff17c27b36ed722c95c7d911fc5424d31e9c (diff)
downloadpylint-f5fb829be4799fedd0baae5714c52c1a233805e9.tar.gz
get_msg_display_string always return symbolic name
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/utils.py b/utils.py
index 3c7f4fc..65f9669 100644
--- a/utils.py
+++ b/utils.py
@@ -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."""