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

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

Issue 2188623002: Change logging statements to not use the "%" operator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/update_test_expectations.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/update_test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/update_test_expectations.py
index dd7b72253e3cca352e5415dca16502cdff2f7077..1b357ddf51aee4a3280983c4b3a8a96094a5615e 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/update_test_expectations.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/update_test_expectations.py
@@ -41,7 +41,7 @@ def main(host, bot_test_expectations_factory, argv):
expectations_file = port.path_to_generic_test_expectations_file()
if not host.filesystem.isfile(expectations_file):
- _log.warn("Didn't find generic expectations file at: " + expectations_file)
+ _log.warning("Didn't find generic expectations file at: " + expectations_file)
return 1
remove_flakes_o_matic = RemoveFlakesOMatic(host,
@@ -104,7 +104,7 @@ class RemoveFlakesOMatic(object):
return False
if builder_name not in self._builder_results_by_path.keys():
- _log.error('Failed to find results for builder "%s"' % builder_name)
+ _log.error('Failed to find results for builder "%s"', builder_name)
return False
results_by_path = self._builder_results_by_path[builder_name]
@@ -196,7 +196,7 @@ class RemoveFlakesOMatic(object):
# This is not fatal since we may not need to check these
# results. If we do need these results we'll log an error later
# when trying to check against them.
- _log.warn('Downloaded results are missing results for builder "%s"' % builder_name)
+ _log.warning('Downloaded results are missing results for builder "%s"', builder_name)
continue
builder_results_by_path[builder_name] = (

Powered by Google App Engine
This is Rietveld 408576698