mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 03:32:05 +00:00
[utils] PEP 8
This commit is contained in:
parent
30a3a4c70f
commit
cfee2dfe83
1 changed files with 5 additions and 6 deletions
|
@ -2931,9 +2931,8 @@ class YoutubeDLRedirectHandler(compat_urllib_request.HTTPRedirectHandler):
|
||||||
# NB: don't use dict comprehension for python 2.6 compatibility
|
# NB: don't use dict comprehension for python 2.6 compatibility
|
||||||
newheaders = dict((k, v) for k, v in req.headers.items()
|
newheaders = dict((k, v) for k, v in req.headers.items()
|
||||||
if k.lower() not in CONTENT_HEADERS)
|
if k.lower() not in CONTENT_HEADERS)
|
||||||
return compat_urllib_request.Request(newurl,
|
return compat_urllib_request.Request(
|
||||||
headers=newheaders,
|
newurl, headers=newheaders, origin_req_host=req.origin_req_host,
|
||||||
origin_req_host=req.origin_req_host,
|
|
||||||
unverifiable=True)
|
unverifiable=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue