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

Unified Diff: build/android/pylib/perf/perf_test_instance.py

Issue 2805533003: [build/android] Load/dump pickles directly form/to files (Closed)
Patch Set: Created 3 years, 8 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 | « build/android/pylib/local/device/local_device_perf_test_run.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/perf_test_instance.py
diff --git a/build/android/pylib/perf/perf_test_instance.py b/build/android/pylib/perf/perf_test_instance.py
index c897f189a1aa31c7132807d36533dcf0b6a10e1f..69ecf4c262a3d8557b2174995e24160b1a8b144a 100644
--- a/build/android/pylib/perf/perf_test_instance.py
+++ b/build/android/pylib/perf/perf_test_instance.py
@@ -26,7 +26,7 @@ def _GetPersistedResult(test_name):
return None
with file(file_name, 'r') as f:
- return pickle.loads(f.read())
+ return pickle.load(f)
def _GetChromiumRevision():
« no previous file with comments | « build/android/pylib/local/device/local_device_perf_test_run.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698