Преглед на файлове

Don't install the global url opener

All the code uses now the urlopen method of YoutubeDL
Jaime Marquínez Ferrándiz преди 11 години
родител
ревизия
a0792b738e
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      youtube_dl/YoutubeDL.py

+ 0 - 3
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)