fix name error causing crash when symbols are included in output messages. Closes #124662

authorAurelien Campeas <aurelien.campeas@logilab.fr>
changesetaad82d0ccc1e
branchdefault
phasepublic
hiddenno
parent revision#76de04726839 stop relying on is_standard_module to avoid having internal dependencies in external deps report. Closes #124660
child revision#eb20da14bab6 Warn about suspicious arguments in {bytes,str,unicode}.{l,r,}strip calls. Closes #74013
files modified by this revision
ChangeLog
utils.py
# HG changeset patch
# User Aurelien Campeas <aurelien.campeas@logilab.fr>
# Date 1363176454 -3600
# Wed Mar 13 13:07:34 2013 +0100
# Node ID aad82d0ccc1eb0bd10e7a67e14fe596cce911bb6
# Parent 76de04726839363a9725c27708a17e3a57c3380b
fix name error causing crash when symbols are included in output messages. Closes #124662

diff --git a/ChangeLog b/ChangeLog
@@ -3,10 +3,12 @@
1 
2  --
3      * #124660: internal dependencies should not appear in external dependencies
4        report
5 
6 +    * #124662: fix name error causing crash when symbols are included in output
7 +      messages
8 
9  2013-02-26 -- 0.27.0
10 
11      * #20693: replace pylint.el by Ian Eure version (patch by J.Kotta)
12 
diff --git a/utils.py b/utils.py
@@ -268,11 +268,11 @@
13          """Generates a user-consumable representation of a message.
14 
15          Can be just the message ID or the ID and the symbol.
16          """
17          if self.config.symbols:
18 -            symbol = self.check_message_id(msg_id).symbol
19 +            symbol = self.check_message_id(msgid).symbol
20              if symbol:
21                  msgid += '(%s)' % symbol
22          return msgid
23 
24      def get_message_state_scope(self, msgid, line=None):