summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-01-26 09:06:47 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-01-26 09:06:47 +0100
commitfdbbafb781d93fb452e3d72d3e2d881899ac98fd (patch)
tree52771963c589827180be32485b0fed44155abc46 /protocols.py
parent957d645de048283c1d630870cc2182abfd1791b9 (diff)
downloadastroid-git-fdbbafb781d93fb452e3d72d3e2d881899ac98fd.tar.gz
add AugAssing operators to BIN_OP_IMPL: we added '=' to the AugAssign opertor
--HG-- branch : rebuild
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 09b37a6e..ff3d0e50 100644
--- a/protocols.py
+++ b/protocols.py
@@ -74,6 +74,8 @@ BIN_OP_IMPL = {'+': lambda a, b: a + b,
'<<': lambda a, b: a << b,
'>>': lambda a, b: a >> b,
}
+for key, impl in BIN_OP_IMPL.items():
+ BIN_OP_IMPL[key+'='] = impl
def const_infer_binary_op(self, operator, other, context):
for other in other.infer(context):