summaryrefslogtreecommitdiff
path: root/mixins.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-12-02 11:15:12 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-12-02 11:15:12 +0100
commit1dde1727e2b6ec58e8940c9e6677ea76da3d3489 (patch)
tree9a76436960c289a7beddf34992a60afd93661d3c /mixins.py
parent81eaf2cf9a021e4ac1684a4b67bf11d87d9be3f0 (diff)
downloadastroid-git-1dde1727e2b6ec58e8940c9e6677ea76da3d3489.tar.gz
cleanup: BaseClass is no more needed
Diffstat (limited to 'mixins.py')
-rw-r--r--mixins.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/mixins.py b/mixins.py
index 911c2e1a..605e29ec 100644
--- a/mixins.py
+++ b/mixins.py
@@ -35,13 +35,12 @@
from logilab.astng.exceptions import (ASTNGBuildingException, InferenceError,
NotFoundError)
-from logilab.astng.bases import BaseClass
# /!\ We cannot build a StmtNode(NodeNG) class since modifying "__bases__"
# in "nodes.py" has to work *both* for old-style and new-style classes,
# but we need the StmtMixIn for scoped nodes
-class StmtMixIn(BaseClass):
+class StmtMixIn(object):
"""StmtMixIn used only for a adding a few attributes"""
is_statement = True
@@ -62,7 +61,7 @@ class StmtMixIn(BaseClass):
return stmts[index -1]
-class BlockRangeMixIn(BaseClass):
+class BlockRangeMixIn(object):
"""override block range """
def set_line_info(self, lastchild):
self.fromlineno = self.lineno
@@ -119,7 +118,7 @@ class ParentAssignTypeMixin(AssignTypeMixin):
-class FromImportMixIn(BaseClass, FilterStmtsMixin):
+class FromImportMixIn(FilterStmtsMixin):
"""MixIn for From and Import Nodes"""
def _infer_name(self, frame, name):