summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorCeridwen <ceridwenv@gmail.com>2015-07-08 16:13:02 -0400
committerCeridwen <ceridwenv@gmail.com>2015-07-08 16:13:02 -0400
commit8abf328539e0e5f1dbafe70b773bfebd28afca77 (patch)
tree51cedaf91c02961f2fcdf4cc05c367079e2e15e0 /astroid/builder.py
parent5e09987dae3ba174fc0b6a5e64f3cf242b63a836 (diff)
downloadastroid-git-8abf328539e0e5f1dbafe70b773bfebd28afca77.tar.gz
Node constructors almost finished except for two bugs
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index bc0a87db..037ecf37 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -207,21 +207,21 @@ class AstroidBuilder(InspectBuilder):
"""
try:
frame = node.frame()
- for infered in node.expr.infer():
- if infered is YES:
+ for inferred in node.expr.infer():
+ if inferred is YES:
continue
try:
- if infered.__class__ is Instance:
- infered = infered._proxied
- iattrs = infered.instance_attrs
- elif isinstance(infered, Instance):
+ if inferred.__class__ is Instance:
+ inferred = inferred._proxied
+ iattrs = inferred.instance_attrs
+ elif isinstance(inferred, Instance):
# Const, Tuple, ... we may be wrong, may be not, but
# anyway we don't want to pollute builtin's namespace
continue
- elif infered.is_function:
- iattrs = infered.instance_attrs
+ elif inferred.is_function:
+ iattrs = inferred.instance_attrs
else:
- iattrs = infered.locals
+ iattrs = inferred.locals
except AttributeError:
# XXX log error
#import traceback