mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 11:02:51 -05:00
Py2/3 compatibility for http.client
This commit is contained in:
@ -41,6 +41,12 @@ try:
|
||||
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:
|
||||
|
Reference in New Issue
Block a user