1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| | diff --git a/pylama/lint/pylama_eradicate.py b/pylama/lint/pylama_eradicate.py
index 3a00425..645eaaf 100644
--- a/pylama/lint/pylama_eradicate.py
+++ b/pylama/lint/pylama_eradicate.py
@@ -1,5 +1,5 @@
"""Commented-out code checking."""
-from eradicate import commented_out_code_line_numbers
+from eradicate import Eradicator
from pylama.lint import Linter as Abstract
try:
@@ -19,7 +19,7 @@ class Linter(Abstract):
:return list: List of errors.
"""
code = converter(code)
- line_numbers = commented_out_code_line_numbers(code)
+ line_numbers = Eradicator().commented_out_code_line_numbers(code)
lines = code.split('\n')
result = []
diff --git a/requirements-test.txt b/requirements-test.txt
index f9ce65b..c84248e 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -2,6 +2,6 @@
ipdb
pytest
-eradicate >= 1.0
+eradicate >= 2.0
radon >= 1.4.2
mypy ; python_version >= '3.5'
|