Index: Tools/Scripts/webkitpy/layout_tests/generate_results_dashboard.py |
diff --git a/Tools/Scripts/webkitpy/layout_tests/generate_results_dashboard.py b/Tools/Scripts/webkitpy/layout_tests/generate_results_dashboard.py |
index d47c48fe870a42ea35659ecc02849ec24862cb12..0ef780f5e9ccee1bfaa613ce53c49a14a649f1fd 100644 |
--- a/Tools/Scripts/webkitpy/layout_tests/generate_results_dashboard.py |
+++ b/Tools/Scripts/webkitpy/layout_tests/generate_results_dashboard.py |
@@ -152,5 +152,5 @@ class GenerateDashBoard(object): |
self._final_result = process_json_data.generate_archived_result() |
final_json = json.dumps(self._final_result) |
final_json = 'ADD_RESULTS(' + final_json + ');' |
- with self._filesystem.open_text_file_for_writing(self._filesystem.join(self._results_directory, 'archived_results.json')) as file: |
- file.write(final_json) |
+ archived_results_file_path = self._filesystem.join(self._results_directory, 'archived_results.json') |
+ self._filesystem.write_text_file(archived_results_file_path, final_json) |