summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2011-06-16 19:29:00 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2011-06-16 19:29:00 +0200
commite03e983f81dad1d006dbcfade306c2a3730ef6f8 (patch)
treeb17072fd3b7b809bde39b9f78749b8f930e9fea3 /utils.py
parent2ece50559bea3ea01aabea7fba3cc3173ff25270 (diff)
downloadpylint-e03e983f81dad1d006dbcfade306c2a3730ef6f8.tar.gz
cleanups
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils.py b/utils.py
index 67c21c4..9c8e8f4 100644
--- a/utils.py
+++ b/utils.py
@@ -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