aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-27 23:58:47 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-27 23:58:47 +0100
commitda779b4924eb3078233c7f5730e26cc73dd91a4a (patch)
treecefee4f1f2897e146654621a8605c295620ba1b3 /youtube_dl
parent89fb51dd2d4d7464b919f17b9d5d24a448319dfc (diff)
downloadyoutube-dl-da779b4924eb3078233c7f5730e26cc73dd91a4a.zip
youtube-dl-da779b4924eb3078233c7f5730e26cc73dd91a4a.tar.gz
youtube-dl-da779b4924eb3078233c7f5730e26cc73dd91a4a.tar.bz2
Fall back to urllib instead of urllib2 for Python 3 urllib.parse
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index ccefc66..ac7e161 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -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