summaryrefslogtreecommitdiff
path: root/checkers/exceptions.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-08-29 15:48:24 -0400
committerBrett Cannon <brett@python.org>2014-08-29 15:48:24 -0400
commit8e23aa2b179274c9c1b128a8b3daf8d2e24cfd75 (patch)
treec234e08aa390be9bca941e66e508071e5e44a801 /checkers/exceptions.py
parent001469c8272a235b4f62b9b5c3ee248635168ad4 (diff)
parentc2cc31874880d7f0d5bd444c6a3b17fa817e2509 (diff)
downloadpylint-python_6.tar.gz
Merge with defaultpython_6
Diffstat (limited to 'checkers/exceptions.py')
-rw-r--r--checkers/exceptions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkers/exceptions.py b/checkers/exceptions.py
index 9b1a071..f9b78bb 100644
--- a/checkers/exceptions.py
+++ b/checkers/exceptions.py
@@ -67,7 +67,7 @@ def infer_bases(klass):
"""
for base in klass.bases:
try:
- inferit = base.infer().next()
+ inferit = next(base.infer())
except astroid.InferenceError:
continue
if inferit is YES:
@@ -178,7 +178,7 @@ class ExceptionsChecker(BaseChecker):
return
if PY3K and node.cause:
try:
- cause = node.cause.infer().next()
+ cause = next(node.cause.infer())
except astroid.InferenceError:
pass
else:
@@ -197,7 +197,7 @@ class ExceptionsChecker(BaseChecker):
return
else:
try:
- value = unpack_infer(expr).next()
+ value = next(unpack_infer(expr))
except astroid.InferenceError:
return
self._check_raise_value(node, value)