From da779b4924eb3078233c7f5730e26cc73dd91a4a Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 27 Nov 2012 23:58:47 +0100 Subject: [PATCH] Fall back to urllib instead of urllib2 for Python 3 urllib.parse --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index ccefc66a0..ac7e161af 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -43,7 +43,7 @@ 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