Skip to content

Commit 040b617

Browse files
oprypinwaylan
authored andcommitted
Remove legacy import needed only in Python 2
1 parent 85d0c18 commit 040b617

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
* Fix type annotations for `convertFile` - it accepts only bytes-based buffers.
1616
Also remove legacy checks from Python 2 (#1400)
17+
* Remove legacy import needed only in Python 2 (#1403)
1718
* Improve and expand type annotations in the code base (#1401).
1819

1920
## [3.5.1] -- 2023-10-31

markdown/inlinepatterns.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@
4444
from typing import TYPE_CHECKING, Any, Collection, NamedTuple
4545
import re
4646
import xml.etree.ElementTree as etree
47-
try: # pragma: no cover
48-
from html import entities
49-
except ImportError: # pragma: no cover
50-
import htmlentitydefs as entities
47+
from html import entities
5148

5249
if TYPE_CHECKING: # pragma: no cover
5350
from markdown import Markdown

0 commit comments

Comments
 (0)