diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2019-09-10 11:19:02 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-09-10 10:19:02 +0200 |
commit | 8ae94aa2e12817a366350326293333ae4ba3351d (patch) | |
tree | 2af5334ec220245005986f76d3afc1f69d87d793 /astroid/protocols.py | |
parent | b6f51e3dc7d2381d236c963df54f62c4acd80a14 (diff) | |
download | astroid-git-8ae94aa2e12817a366350326293333ae4ba3351d.tar.gz |
Remove redundant compatibility code (#693)
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r-- | astroid/protocols.py | 5 |
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 |