From f8e0a6c24b4ce2f5a1eedf78348ebe63baf32f90 Mon Sep 17 00:00:00 2001 From: Huyuumi Date: Sun, 29 Jul 2018 02:40:08 +0900 Subject: [PATCH] Remove the return statement from the __init__ method --- youtube_dl/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index b84436ed6..fdff1b628 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -3569,6 +3569,8 @@ class PerRequestProxyHandler(compat_urllib_request.ProxyHandler): setattr(self, '%s_open' % type, lambda r, proxy='__noproxy__', type=type, meth=self.proxy_open: meth(r, proxy, type)) + + def proxy_handler(self, proxies=None): return compat_urllib_request.ProxyHandler.__init__(self, proxies) def proxy_open(self, req, proxy, type):