Skip to content

Commit 4cf9eed

Browse files
committed
Drop support for EOL Python 3.5
1 parent 2c90062 commit 4cf9eed

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ cache: pip
44

55
matrix:
66
include:
7-
- name: "Python 3.5 on Linux"
8-
python: 3.5
97
- name: "Python 3.6 on Linux"
108
python: 3.6
119
- name: "Python 3.7 on Linux"

readability/readability.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def compile_pattern(elements):
9191
if isinstance(elements, (list, tuple)):
9292
return re.compile("|".join([re.escape(x.strip()) for x in elements]), re.U)
9393
else:
94-
raise Exception("Unknown type for the pattern: {}".format(type(elements)))
94+
raise Exception(f"Unknown type for the pattern: {type(elements)}")
9595
# assume string or string like object
9696

9797

@@ -332,7 +332,7 @@ def select_best_candidate(self, candidates):
332332
)
333333
for candidate in sorted_candidates[:5]:
334334
elem = candidate["elem"]
335-
log.debug("Top 5 : %6.3f %s" % (candidate["content_score"], describe(elem)))
335+
log.debug("Top 5 : {:6.3f} {}".format(candidate["content_score"], describe(elem)))
336336

337337
best_candidate = sorted_candidates[0]
338338
return best_candidate
@@ -448,7 +448,7 @@ def score_node(self, elem):
448448

449449
def remove_unlikely_candidates(self):
450450
for elem in self.html.findall(".//*"):
451-
s = "%s %s" % (elem.get("class", ""), elem.get("id", ""))
451+
s = "{} {}".format(elem.get("class", ""), elem.get("id", ""))
452452
if len(s) < 2:
453453
continue
454454
if (

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def find_version(*file_paths):
6666
"Topic :: Software Development :: Libraries :: Python Modules",
6767
"Programming Language :: Python",
6868
"Programming Language :: Python :: 3",
69-
"Programming Language :: Python :: 3.5",
7069
"Programming Language :: Python :: 3.6",
7170
"Programming Language :: Python :: 3.7",
7271
"Programming Language :: Python :: 3.8",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[tox]
77
envlist =
8-
py{35,36,37,38,39,310,py3}, doc
8+
py{36,37,38,39,310,py3}, doc
99
skip_missing_interpreters =
1010
True
1111

0 commit comments

Comments
 (0)