From e784a49b2fc10af96c7361167ebbe9addc74472b Mon Sep 17 00:00:00 2001 From: Karl Dubost Date: Thu, 5 Feb 2015 09:57:52 +0900 Subject: [PATCH] #451 less obfuscated variable name --- webcompat/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcompat/helpers.py b/webcompat/helpers.py index 494313d7a..d4d7b92d0 100644 --- a/webcompat/helpers.py +++ b/webcompat/helpers.py @@ -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 ``, we want `http://…`. uri = uri_info[1:-1] header_link_data.append({'link': uri, 'rel': rel_value})