Resolve lint issues

This commit is contained in:
Andrew Rabert 2022-03-07 17:25:49 -05:00
parent ff54a51659
commit 219bc9b7e7

View file

@ -156,9 +156,10 @@ class HTTPResponse:
return None
links = []
if 'Link' in self._responses[-1].headers:
for l in headers.parse_link(self._responses[-1].headers['Link']):
link = {'target': l.target}
link.update({k: v for (k, v) in l.parameters})
for parsed in headers.parse_link(
self._responses[-1].headers['Link']):
link = {'target': parsed.target}
link.update({k: v for (k, v) in parsed.parameters})
links.append(link)
return links