summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index b598ec3d..310e5cd3 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -114,11 +114,8 @@ BIN_OP_IMPL = {
"^": lambda a, b: a ^ b,
"<<": lambda a, b: a << b,
">>": lambda a, b: a >> b,
+ "@": operator_mod.matmul,
}
-if sys.version_info >= (3, 5):
- # MatMult is available since Python 3.5+.
- BIN_OP_IMPL["@"] = operator_mod.matmul
-
for _KEY, _IMPL in list(BIN_OP_IMPL.items()):
BIN_OP_IMPL[_KEY + "="] = _IMPL