fix gui reporter broken by addition of coloffset information. Closes #92584

authorSylvain Th?nault <sylvain.thenault@logilab.fr>
changesetb68f274aaab7
branchdefault
phasepublic
hiddenno
parent revision#5432e78e7aec Make pythonpath behaviour closer to python's (closes #88218)
child revision#8752260a4f41 fix crash when using set in regexp for --generated-members option. Closes #88914
files modified by this revision
ChangeLog
reporters/guireporter.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1337086669 -7200
# Tue May 15 14:57:49 2012 +0200
# Node ID b68f274aaab72edcb4cced3d8f4d60bd9d1f0353
# Parent 5432e78e7aec126cea273398ea0bb051439fd177
fix gui reporter broken by addition of coloffset information. Closes #92584

diff --git a/ChangeLog b/ChangeLog
@@ -1,21 +1,26 @@
1  ChangeLog for PyLint
2  ====================
3 
4  	--
5 
6 -    * Emit W0102 when sets are used as default arguments in functions
7 +    * #92911: emit W0102 when sets are used as default arguments in functions
8        (patch by tmarek@google.com)
9 
10 -    * #77982 Do not emit E0602 for loop variables of comprehensions
11 +    * #77982: do not emit E0602 for loop variables of comprehensions
12        used as argument values inside a decorator (patch by tmarek@google.com)
13 
14 +    * #89092: don't emit E0202 (attribute hiding a method) on @property methods
15 +
16 +    * #92584 fix pylint-gui crash due to internal API change
17 +
18      * #87192 fix crash when decorators are accessed through more than one dot
19        (for instance @a.b is fine, @a.b.c crash)
20 -    * #89092: don't emit E0202 (attribute hiding a method) on @property methods
21 +
22      * fix potential crashes with utils.safe_infer raising InferenceError
23 
24 +
25  2011-12-08  --  0.25.1
26      * #81078: Warn if names in  exception handlers clobber overwrite
27        existing names (patch by tmarek@google.com)
28 
29      * #81113: Fix W0702 messages appearing with the wrong line number.
diff --git a/reporters/guireporter.py b/reporters/guireporter.py
@@ -19,11 +19,11 @@
30          self.msgs = []
31          self.gui = gui
32 
33      def add_message(self, msg_id, location, msg):
34          """manage message of different type and in the context of path"""
35 -        module, obj, line = location[1:]
36 +        module, obj, line, col_offset = location[1:]
37          if self.include_ids:
38              sigle = msg_id
39          else:
40              sigle = msg_id[0]
41