summaryrefslogtreecommitdiff
path: root/astroid/context.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/context.py
parentc39599ad4f32608cb03e680516678a8fd1ba4dee (diff)
downloadastroid-git-d84836b80305a6ea1a05dd5c3f52300bfdb5cbac.tar.gz
Fix most obvious errors intorduced by the latest merge
Diffstat (limited to 'astroid/context.py')
-rw-r--r--astroid/context.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/astroid/context.py b/astroid/context.py
index 3e420d76..bb2422ae 100644
--- a/astroid/context.py
+++ b/astroid/context.py
@@ -26,14 +26,14 @@ from astroid import util
class InferenceContext(object):
- __slots__ = ('path', 'lookupname', 'callcontext', 'boundnode', 'infered')
+ __slots__ = ('path', 'lookupname', 'callcontext', 'boundnode', 'inferred')
- def __init__(self, path=None, infered=None):
+ def __init__(self, path=None, inferred=None):
self.path = path or set()
self.lookupname = None
self.callcontext = None
self.boundnode = None
- self.infered = infered or {}
+ self.inferred = inferred or {}
def push(self, node):
name = self.lookupname
@@ -43,7 +43,7 @@ class InferenceContext(object):
def clone(self):
# XXX copy lookupname/callcontext ?
- clone = InferenceContext(self.path, infered=self.infered)
+ clone = InferenceContext(self.path, inferred=self.inferred)
clone.callcontext = self.callcontext
clone.boundnode = self.boundnode
return clone
@@ -54,7 +54,7 @@ class InferenceContext(object):
results.append(result)
yield result
- self.infered[key] = tuple(results)
+ self.inferred[key] = tuple(results)
return
@contextlib.contextmanager
@@ -79,12 +79,12 @@ class CallContext(object):
@staticmethod
def _infer_argument_container(container, key, context):
its = []
- for infered in container.infer(context=context):
- if infered is util.YES:
+ for inferred in container.infer(context=context):
+ if inferred is util.YES:
its.append((util.YES,))
continue
try:
- its.append(infered.getitem(key, context).infer(context=context))
+ its.append(inferred.getitem(key, context).infer(context=context))
except (exceptions.InferenceError, AttributeError):
its.append((util.YES,))
except (IndexError, TypeError):