Report the column number for PyFlakes errors; issue #90

This commit is contained in:
Florent Xicluna 2013-07-04 17:40:20 +02:00
parent da663a77ca
commit ec25ce4a4a

View file

@ -44,4 +44,5 @@ class FlakesChecker(pyflakes.checker.Checker):
def run(self):
for m in self.messages:
yield m.lineno, 0, (m.flake8_msg % m.message_args), m.__class__
col = getattr(m, 'col', 0)
yield m.lineno, col, (m.flake8_msg % m.message_args), m.__class__