summaryrefslogtreecommitdiff
path: root/astroid/objects.py
diff options
context:
space:
mode:
authorCeridwen <ceridwenv@gmail.com>2015-08-14 15:38:35 -0400
committerCeridwen <ceridwenv@gmail.com>2015-08-14 15:38:35 -0400
commitd84836b80305a6ea1a05dd5c3f52300bfdb5cbac (patch)
treeed3c9bef63f7603c857ef38759466e7322aa4d31 /astroid/objects.py
parentc39599ad4f32608cb03e680516678a8fd1ba4dee (diff)
downloadastroid-git-d84836b80305a6ea1a05dd5c3f52300bfdb5cbac.tar.gz
Fix most obvious errors intorduced by the latest merge
Diffstat (limited to 'astroid/objects.py')
-rw-r--r--astroid/objects.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/astroid/objects.py b/astroid/objects.py
index a78dcb41..056e2d24 100644
--- a/astroid/objects.py
+++ b/astroid/objects.py
@@ -53,15 +53,9 @@ class FrozenSet(bases.NodeNG, bases.Instance, mixins.ParentAssignTypeMixin):
if elts is None:
node.elts = []
else:
- node.elts = [const_factory(e) for e in elts]
+ node.elts = [node_classes.const_factory(e) for e in elts]
return node
- def __init__(self, elts=None):
- if elts is None:
- self.elts = []
- else:
- self.elts = [node_classes.const_factory(e) for e in elts]
-
def pytype(self):
return '%s.frozenset' % BUILTINS
@@ -117,8 +111,8 @@ class Super(bases.NodeNG):
if isinstance(self.type, scoped_nodes.ClassDef):
# `super(type, type)`, most likely in a class method.
- self._class_based = True
- mro_type = self.type
+ self._class_based = True
+ mro_type = self.type
else:
mro_type = getattr(self.type, '_proxied', None)
if not isinstance(mro_type, (bases.Instance, scoped_nodes.ClassDef)):