summaryrefslogtreecommitdiff
path: root/pylint/checkers
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-12 23:21:15 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-12 23:21:15 +0300
commit7212a8fcd700e2c80b0d1197d70ed693a3bcd41f (patch)
treefdef4668bb84991b7b23859015c0a08a685ee080 /pylint/checkers
parentbeae668caff82f4e10eeec0a49c81aebbff7db2d (diff)
downloadpylint-7212a8fcd700e2c80b0d1197d70ed693a3bcd41f.tar.gz
Import the context from astroid.context, not astroid.bases
Diffstat (limited to 'pylint/checkers')
-rw-r--r--pylint/checkers/typecheck.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py
index fd98793..a0f1e5e 100644
--- a/pylint/checkers/typecheck.py
+++ b/pylint/checkers/typecheck.py
@@ -23,6 +23,7 @@ import shlex
import sys
import astroid
+import astroid.context
from astroid import (
InferenceError, NotFoundError,
MroError, SuperError, YES, Instance
@@ -713,7 +714,7 @@ accessed. Python regular expressions are accepted.'}
@check_messages('not-context-manager')
def visit_with(self, node):
for ctx_mgr, _ in node.items:
- context = astroid.bases.InferenceContext()
+ context = astroid.context.InferenceContext()
infered = helpers.safe_infer(ctx_mgr, context=context)
if infered is None or infered is astroid.YES:
continue