diff options
author | Yen Chi Hsuan <[email protected]> | 2016-06-10 18:12:57 +0800 |
---|---|---|
committer | Yen Chi Hsuan <[email protected]> | 2016-06-10 18:12:57 +0800 |
commit | 836ab0c554f13751adff02d3987f6f3f79e2db09 (patch) | |
tree | 2bfbaea683f7e57718527b453a372111e0b9855d /youtube_dl/compat.py | |
parent | 6c0376fe4f16f53fd87f5e6a56531fc153922980 (diff) | |
download | youtube-dl-836ab0c554f13751adff02d3987f6f3f79e2db09.tar.gz youtube-dl-836ab0c554f13751adff02d3987f6f3f79e2db09.zip |
[compat] Import html5 entities correctly
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r-- | youtube_dl/compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 0243949a4..67db1c7c6 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -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', |