projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c0376f
)
[compat] Import html5 entities correctly
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 10 Jun 2016 10:12:57 +0000
(18:12 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 10 Jun 2016 10:12:57 +0000
(18:12 +0800)
youtube_dl/compat.py
patch
|
blob
|
history
diff --git
a/youtube_dl/compat.py
b/youtube_dl/compat.py
index 0243949a44468582a55fb151ec40ccf3a6850e9a..67db1c7c6595b0f219d393da7df1363c48103f26 100644
(file)
--- 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
Import
Error:
+
compat_html_entities_html5 = compat_html_entities.
html5
+except
Attribute
Error:
# Copied from CPython 3.5.1 html/entities.py
compat_html_entities_html5 = {
'Aacute': '\xc1',