mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-08 05:02:29 +00: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