1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-14 09:09:33 +00:00

[compat] Import html5 entities correctly

This commit is contained in:
Yen Chi Hsuan 2016-06-10 18:12:57 +08:00
parent 6c0376fe4f
commit 836ab0c554
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30

View file

@ -64,8 +64,8 @@ except ImportError: # Python 2
import htmlentitydefs as compat_html_entities
try: # Python >= 3.3
from compat_html_entities import html as compat_html_entities_html5
except ImportError:
compat_html_entities_html5 = compat_html_entities.html5
except AttributeError:
# Copied from CPython 3.5.1 html/entities.py
compat_html_entities_html5 = {
'Aacute': '\xc1',