From: Huyuumi Date: Sat, 28 Jul 2018 22:52:42 +0000 (+0900) Subject: [utils] Remove return from __init__ X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=38e87f6c2ae2cdc04dd6f526213c83a0259db335;p=youtube-dl.git [utils] Remove return from __init__ --- diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index b84436ed6..29cafd8f0 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -3569,7 +3569,7 @@ 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)) - return compat_urllib_request.ProxyHandler.__init__(self, proxies) + compat_urllib_request.ProxyHandler.__init__(self, proxies) def proxy_open(self, req, proxy, type): req_proxy = req.headers.get('Ytdl-request-proxy')