mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-22 22:47:55 +01:00
[compat] Import html5 entities correctly
This commit is contained in:
parent
6c0376fe4f
commit
836ab0c554
@ -64,8 +64,8 @@ except ImportError: # Python 2
|
|||||||
import htmlentitydefs as compat_html_entities
|
import htmlentitydefs as compat_html_entities
|
||||||
|
|
||||||
try: # Python >= 3.3
|
try: # Python >= 3.3
|
||||||
from compat_html_entities import html as compat_html_entities_html5
|
compat_html_entities_html5 = compat_html_entities.html5
|
||||||
except ImportError:
|
except AttributeError:
|
||||||
# Copied from CPython 3.5.1 html/entities.py
|
# Copied from CPython 3.5.1 html/entities.py
|
||||||
compat_html_entities_html5 = {
|
compat_html_entities_html5 = {
|
||||||
'Aacute': '\xc1',
|
'Aacute': '\xc1',
|
||||||
|
Loading…
Reference in New Issue
Block a user