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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py

Issue 2014063002: Run format-webkit on webkitpy code (without string conversion). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py
index a27f8b245f0b47446b8ae40ab3eac0b36e5288f2..7c5d53ced8be2f750577bab2e4be61fa46393988 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py
@@ -34,6 +34,7 @@ import re
from webkitpy.common.webkit_finder import WebKitFinder
+
def platform_options(use_globs=False):
return [
optparse.make_option('--android', action='store_const', dest='platform',
@@ -162,7 +163,7 @@ class PortFactory(object):
module_name, class_name = port_name.rsplit('.', 1)
module = __import__(module_name, globals(), locals(), [], -1)
port_class_name = module.get_port_class_name(class_name)
- if port_class_name != None:
+ if port_class_name is not None:
cls = module.__dict__[port_class_name]
port_name = cls.determine_full_port_name(self._host, options, class_name)
return cls(self._host, port_name, options=options, **kwargs)

Powered by Google App Engine
This is Rietveld 408576698