summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-09-08 14:06:21 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2009-09-08 14:06:21 +0200
commit5362f4a0eae9efa8b625ba0de078951c83e66769 (patch)
tree767d0b70e482a7d40bf3e190c6867a2934a502b8 /protocols.py
parent9acb34a890f19509b78f3b17376b977672f7c1fc (diff)
downloadastroid-git-5362f4a0eae9efa8b625ba0de078951c83e66769.tar.gz
[B] bugfix for shift operators and tests
Diffstat (limited to 'protocols.py')
-rw-r--r--protocols.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols.py b/protocols.py
index 97625a78..28f17aec 100644
--- a/protocols.py
+++ b/protocols.py
@@ -70,8 +70,8 @@ BIN_OP_IMPL = {'+': lambda a, b: a + b,
'&': lambda a, b: a & b,
'|': lambda a, b: a | b,
'^': lambda a, b: a ^ b,
- '<<': lambda a, b: a ^ b,
- '>>': lambda a, b: a ^ b,
+ '<<': lambda a, b: a << b,
+ '>>': lambda a, b: a >> b,
}
def const_infer_binary_op(self, operator, other, context):