summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-17 12:33:44 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-17 12:33:44 +0100
commit7c796fefa0cebe42f343ca7e3e0397ff383635cb (patch)
treea18fb389bd52f16ceeb1f22ba4479f69b404be73 /protocols.py
parent69041de75ae6b40cc06c90c87276ca77089e67a0 (diff)
downloadastroid-git-7c796fefa0cebe42f343ca7e3e0397ff383635cb.tar.gz
fix YES handling
--HG-- branch : _ast_compat
Diffstat (limited to 'protocols.py')
-rw-r--r--protocols.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols.py b/protocols.py
index 9f1834ec..f98731e4 100644
--- a/protocols.py
+++ b/protocols.py
@@ -81,6 +81,8 @@ def const_infer_binary_op(self, operator, other, context):
except TypeError:
# XXX log TypeError
continue
+ elif other is YES:
+ yield other
else:
try:
for val in other.infer_binary_op(operator, self, context):