summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2019-09-10 11:19:02 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2019-09-10 10:19:02 +0200
commit8ae94aa2e12817a366350326293333ae4ba3351d (patch)
tree2af5334ec220245005986f76d3afc1f69d87d793 /astroid/protocols.py
parentb6f51e3dc7d2381d236c963df54f62c4acd80a14 (diff)
downloadastroid-git-8ae94aa2e12817a366350326293333ae4ba3351d.tar.gz
Remove redundant compatibility code (#693)
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