diff options
author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2013-05-20 15:59:30 +0200 |
---|---|---|
committer | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2013-05-20 15:59:30 +0200 |
commit | 2fb13f937b31021915f186547050ec78979c5c57 (patch) | |
tree | 9c00b464719d34ab73a3c57747eaf5d16d9c04a1 /utils.py | |
parent | fb600a34111425760cd5745a18fcd07dc9c18218 (diff) | |
download | pylint-2fb13f937b31021915f186547050ec78979c5c57.tar.gz |
old-style classes are deprecated: refactor to new style
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 """ |