Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(868)

Unified Diff: Tools/Scripts/webkitpy/layout_tests/reftests/extract_reference_link.py

Issue 546133003: Reformat webkitpy.layout_tests w/ format-webkitpy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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):

Powered by Google App Engine
This is Rietveld 408576698