| Index: Tools/Scripts/webkitpy/layout_tests/reftests/extract_reference_link.py
|
| diff --git a/Tools/Scripts/webkitpy/layout_tests/reftests/extract_reference_link.py b/Tools/Scripts/webkitpy/layout_tests/reftests/extract_reference_link.py
|
| index e21d73d4f841d3d2fb41a6ebe2ae668e863c21cd..e782059054ac03b06a9a396e8954c40fa0306687 100644
|
| --- a/Tools/Scripts/webkitpy/layout_tests/reftests/extract_reference_link.py
|
| +++ b/Tools/Scripts/webkitpy/layout_tests/reftests/extract_reference_link.py
|
| @@ -37,17 +37,17 @@ class ExtractReferenceLinkParser(HTMLParser):
|
| self.mismatches = []
|
|
|
| def handle_starttag(self, tag, attrs):
|
| - if tag != "link":
|
| + if tag != 'link':
|
| return
|
| attrs = dict(attrs)
|
| - if not "rel" in attrs:
|
| + if not 'rel' in attrs:
|
| return
|
| - if not "href" in attrs:
|
| + if not 'href' in attrs:
|
| return
|
| - if attrs["rel"] == "match":
|
| - self.matches.append(attrs["href"])
|
| - if attrs["rel"] == "mismatch":
|
| - self.mismatches.append(attrs["href"])
|
| + if attrs['rel'] == 'match':
|
| + self.matches.append(attrs['href'])
|
| + if attrs['rel'] == 'mismatch':
|
| + self.mismatches.append(attrs['href'])
|
|
|
|
|
| def get_reference_link(html_string):
|
|
|