From: Jaime Marquínez Ferrándiz Date: Mon, 10 Mar 2014 18:04:30 +0000 (+0100) Subject: Don't install the global url opener X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a0792b738ed51ca61eed36ff1dba41d05141093c;p=youtube-dl Don't install the global url opener All the code uses now the urlopen method of YoutubeDL --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index c1bd0b085..1db27315c 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1236,6 +1236,3 @@ class YoutubeDL(object): # (See https://github.com/rg3/youtube-dl/issues/1309 for details) opener.addheaders = [] self._opener = opener - - # TODO remove this global modification - compat_urllib_request.install_opener(opener)