Skip to content

Commit

Permalink
Remove legacy import needed only in Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin authored and waylan committed Nov 2, 2023
1 parent 85d0c18 commit 040b617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

## [3.5.1] -- 2023-10-31
Expand Down
5 changes: 1 addition & 4 deletions markdown/inlinepatterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@
from typing import TYPE_CHECKING, Any, Collection, NamedTuple
import re
import xml.etree.ElementTree as etree
try: # pragma: no cover
from html import entities
except ImportError: # pragma: no cover
import htmlentitydefs as entities
from html import entities

if TYPE_CHECKING: # pragma: no cover
from markdown import Markdown
Expand Down

0 comments on commit 040b617

Please sign in to comment.