summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-02-21 12:08:35 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2018-02-21 12:08:35 +0100
commit8425d915c0186f87da66ad6223588ce70c49031c (patch)
tree1922a89c09dc10f9a00af1ba2bf23cb50bf75923 /astroid/protocols.py
parent29eb92e6bb8231f8a5b4171383684b26fcc10a6c (diff)
downloadastroid-git-8425d915c0186f87da66ad6223588ce70c49031c.tar.gz
Remove Python 2 branches, assume we always run on Python 3
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 00b0736c..30303dec 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -14,8 +14,6 @@ import collections
import operator as operator_mod
import sys
-import six
-
from astroid import arguments
from astroid import bases
from astroid import context as contextmod
@@ -39,7 +37,7 @@ def _augmented_name(name):
_CONTEXTLIB_MGR = 'contextlib.contextmanager'
BIN_OP_METHOD = {'+': '__add__',
'-': '__sub__',
- '/': '__div__' if six.PY2 else '__truediv__',
+ '/': '__truediv__',
'//': '__floordiv__',
'*': '__mul__',
'**': '__pow__',
@@ -123,7 +121,7 @@ def const_infer_binary_op(self, opnode, operator, other, context, _):
yield util.Uninferable
except TypeError:
yield not_implemented
- elif isinstance(self.value, six.string_types) and operator == '%':
+ elif isinstance(self.value, str) and operator == '%':
# TODO(cpopa): implement string interpolation later on.
yield util.Uninferable
else: