1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

Fall back to urllib instead of urllib2 for Python 3 urllib.parse

This commit is contained in:
Philipp Hagemeister 2012-11-27 23:58:47 +01:00
parent 89fb51dd2d
commit da779b4924

View File

@ -43,7 +43,7 @@ except ImportError: # Python 2
try: try:
import urllib.parse as compat_urllib_parse import urllib.parse as compat_urllib_parse
except ImportError: # Python 2 except ImportError: # Python 2
import urllib2 as compat_urllib_parse import urllib as compat_urllib_parse
try: try:
import http.cookiejar as compat_cookiejar import http.cookiejar as compat_cookiejar