summaryrefslogtreecommitdiff
path: root/astroid/inference.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-10-10 14:49:03 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-10-10 14:49:03 +0200
commit833456da38a982e75a9523d21c42a225675e5a18 (patch)
treeff424567f730446d23ffe227b7f045ca239250f5 /astroid/inference.py
parent36fa294e9b84885d95a03b1fbc07da63e6d6a79b (diff)
downloadastroid-git-833456da38a982e75a9523d21c42a225675e5a18.tar.gz
Use yield from
Diffstat (limited to 'astroid/inference.py')
-rw-r--r--astroid/inference.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/astroid/inference.py b/astroid/inference.py
index f01523ee..f66b1b63 100644
--- a/astroid/inference.py
+++ b/astroid/inference.py
@@ -735,8 +735,7 @@ def _infer_binary_operation(left, right, binary_opnode, context, flow_factory):
yield util.Uninferable
return
- for result in results:
- yield result
+ yield from results
return
# The operation doesn't seem to be supported so let the caller know about it
yield util.BadBinaryOperationMessage(left_type, binary_opnode.op, right_type)