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

Unified Diff: scripts/slave/recipe_modules/ios/api.py

Issue 2262543003: Use json.loads instead of json.load (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/ios/api.py
diff --git a/scripts/slave/recipe_modules/ios/api.py b/scripts/slave/recipe_modules/ios/api.py
index ee3d91f85414f3057367513e72d361ea99621734..a3ccd3fa288660ce259efe824c5449f9126bd0a5 100644
--- a/scripts/slave/recipe_modules/ios/api.py
+++ b/scripts/slave/recipe_modules/ios/api.py
@@ -749,7 +749,7 @@ class iOSApi(recipe_api.RecipeApi):
task.task.task_output_dir, '0', 'summary.json')
if self.m.path.exists(test_summary): # pragma: no cover
with open(test_summary) as f:
- test_summary_json = self.m.json.load(f)
+ test_summary_json = self.m.json.loads(f.read())
step_result.presentation.logs['test_summary.json'] = self.m.json.dumps(
test_summary_json, indent=2).splitlines()
step_result.presentation.logs.update(test_summary_json.get('logs', {}))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698