From: Philipp Hagemeister Date: Tue, 27 Nov 2012 22:58:47 +0000 (+0100) Subject: Fall back to urllib instead of urllib2 for Python 3 urllib.parse X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=da779b4924eb3078233c7f5730e26cc73dd91a4a;p=youtube-dl Fall back to urllib instead of urllib2 for Python 3 urllib.parse --- 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 @@ 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