mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 11:02:51 -05:00
Fall back to urllib instead of urllib2 for Python 3 urllib.parse
This commit is contained in:
@ -43,7 +43,7 @@ except ImportError: # Python 2
|
||||
try:
|
||||
import urllib.parse as compat_urllib_parse
|
||||
except ImportError: # Python 2
|
||||
import urllib2 as compat_urllib_parse
|
||||
import urllib as compat_urllib_parse
|
||||
|
||||
try:
|
||||
import http.cookiejar as compat_cookiejar
|
||||
|
Reference in New Issue
Block a user