summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2013-05-20 15:59:30 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2013-05-20 15:59:30 +0200
commit2fb13f937b31021915f186547050ec78979c5c57 (patch)
tree9c00b464719d34ab73a3c57747eaf5d16d9c04a1 /utils.py
parentfb600a34111425760cd5745a18fcd07dc9c18218 (diff)
downloadpylint-2fb13f937b31021915f186547050ec78979c5c57.tar.gz
old-style classes are deprecated: refactor to new style
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index a984f58..370d25e 100644
--- a/utils.py
+++ b/utils.py
@@ -116,7 +116,7 @@ def tokenize_module(module):
return list(tokenize.generate_tokens(readline))
-class Message:
+class Message(object):
def __init__(self, checker, msgid, msg, descr, symbol, scope):
assert len(msgid) == 5, 'Invalid message id %s' % msgid
assert msgid[0] in MSG_TYPES, \
@@ -128,7 +128,7 @@ class Message:
self.symbol = symbol
self.scope = scope
-class MessagesHandlerMixIn:
+class MessagesHandlerMixIn(object):
"""a mix-in class containing all the messages related methods for the main
lint class
"""