diff options
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index ebff2e8f2..370567705 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -42,6 +42,12 @@ except NameError: # Python 2 import HTMLParser as compat_html_parser try: + import http.client as compat_html_client +except NameError: # Python 2 + import httplib as compat_html_client + + +try: compat_str = unicode # Python 2 except NameError: compat_str = str |