summaryrefslogtreecommitdiff
path: root/pylint/checkers/python3.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/python3.py')
-rw-r--r--pylint/checkers/python3.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py
index ec32f87d3..be83667e5 100644
--- a/pylint/checkers/python3.py
+++ b/pylint/checkers/python3.py
@@ -448,6 +448,11 @@ class Python3Checker(checkers.BaseChecker):
'Used when dict.values is referenced in a non-iterating '
'context (returns an iterator in Python 3)',
{'maxversion': (3, 0)}),
+ 'W1657': ('Accessing a removed attribute on the operator module',
+ 'deprecated-operator-function',
+ 'Used when accessing a field on operator module that has been '
+ 'removed in Python 3.',
+ {'maxversion': (3, 0)}),
}
_bad_builtins = frozenset([
@@ -548,6 +553,9 @@ class Python3Checker(checkers.BaseChecker):
'lowercase', 'letters', 'uppercase', 'atol_error',
'atof_error', 'atoi_error', 'index_error'
])
+ },
+ 'deprecated-operator-function': {
+ 'operator': frozenset({'div'}),
}
}