summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
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):