summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Campeas <aurelien.campeas@logilab.fr>2013-03-13 13:07:34 +0100
committerAurelien Campeas <aurelien.campeas@logilab.fr>2013-03-13 13:07:34 +0100
commit5be8b055635ab60beec12cb0808f5488b2fcb0bc (patch)
tree162ff3a6422795c689fdf5926175214193a32fb6
parenta3d56dd1caa143a93f5ab9a6162bcac7f2d2103a (diff)
downloadpylint-git-5be8b055635ab60beec12cb0808f5488b2fcb0bc.tar.gz
fix name error causing crash when symbols are included in output messages. Closes #124662
-rw-r--r--ChangeLog2
-rw-r--r--utils.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2fc80ac6e..0dbd29bfd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@ ChangeLog for PyLint
* #124660: internal dependencies should not appear in external dependencies
report
+ * #124662: fix name error causing crash when symbols are included in output
+ messages
2013-02-26 -- 0.27.0
diff --git a/utils.py b/utils.py
index 3f499ffdb..c26bb9a43 100644
--- a/utils.py
+++ b/utils.py
@@ -270,7 +270,7 @@ class MessagesHandlerMixIn:
Can be just the message ID or the ID and the symbol.
"""
if self.config.symbols:
- symbol = self.check_message_id(msg_id).symbol
+ symbol = self.check_message_id(msgid).symbol
if symbol:
msgid += '(%s)' % symbol
return msgid