diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-17 12:33:44 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-17 12:33:44 +0100 |
commit | 7c796fefa0cebe42f343ca7e3e0397ff383635cb (patch) | |
tree | a18fb389bd52f16ceeb1f22ba4479f69b404be73 /protocols.py | |
parent | 69041de75ae6b40cc06c90c87276ca77089e67a0 (diff) | |
download | astroid-git-7c796fefa0cebe42f343ca7e3e0397ff383635cb.tar.gz |
fix YES handling
--HG--
branch : _ast_compat
Diffstat (limited to 'protocols.py')
-rw-r--r-- | protocols.py | 2 |
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): |