Skip to content

Commit

Permalink
#451 less obfuscated variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow authored and Mike Taylor committed Feb 28, 2015
1 parent 272983c commit e784a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webcompat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ def parse_link_header(link_header):
uri_info, rel_info = link.split(';')
uri_info = uri_info.strip()
rel_info = rel_info.strip()
rel = rel_info.split('=')
rel_value = rel[1][1:-1]
rel_keyword, value = rel_info.split('=')
# rel values have the form `rel="foo"`, we want `foo`.
rel_value = value[1:-1]
# uri have the form `<http://…>`, we want `http://…`.
uri = uri_info[1:-1]
header_link_data.append({'link': uri, 'rel': rel_value})
Expand Down

0 comments on commit e784a49

Please sign in to comment.