Skip to content

Commit e784a49

Browse files
karlcowMike Taylor
authored and
Mike Taylor
committed
#451 less obfuscated variable name
1 parent 272983c commit e784a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webcompat/helpers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ def parse_link_header(link_header):
249249
uri_info, rel_info = link.split(';')
250250
uri_info = uri_info.strip()
251251
rel_info = rel_info.strip()
252-
rel = rel_info.split('=')
253-
rel_value = rel[1][1:-1]
252+
rel_keyword, value = rel_info.split('=')
254253
# rel values have the form `rel="foo"`, we want `foo`.
254+
rel_value = value[1:-1]
255255
# uri have the form `<http://…>`, we want `http://…`.
256256
uri = uri_info[1:-1]
257257
header_link_data.append({'link': uri, 'rel': rel_value})

0 commit comments

Comments
 (0)