diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2011-06-16 19:29:00 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2011-06-16 19:29:00 +0200 |
commit | e03e983f81dad1d006dbcfade306c2a3730ef6f8 (patch) | |
tree | b17072fd3b7b809bde39b9f78749b8f930e9fea3 /utils.py | |
parent | 2ece50559bea3ea01aabea7fba3cc3173ff25270 (diff) | |
download | pylint-e03e983f81dad1d006dbcfade306c2a3730ef6f8.tar.gz |
cleanups
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -249,11 +249,10 @@ class MessagesHandlerMixIn: """ if line is None and node is not None: line = node.fromlineno - - col_offset = None if hasattr(node, 'col_offset'): - col_offset = node.col_offset #measured in bytes for utf-8, divide by two for chars? - + col_offset = node.col_offset # XXX measured in bytes for utf-8, divide by two for chars? + else: + col_offset = None # should this message be displayed if not self.is_message_enabled(msgid, line): return |