[autotest] Use |json| instead of |simplejson|.
simplejson was moved into the library as of python 2.4. We're now at
python 2.6/2.7, and having to keep installing simplejson everywhere has
slowly turned into a hassle. Since we can just trivially drop/rename
it, let's do so.
The rpc_interface parts of this change have been vetted, the rest is
done just as a s/simplejson/json/ across the code, which afaik should be
a safe thing to do.
BUG=None
TEST=unit, run_suite
DEPLOY=apache
Change-Id: Iab35f71157e7e5cd3be5291c776b07eb3283be8e
Reviewed-on: https://gerrit.chromium.org/gerrit/46424
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
diff --git a/frontend/perf-dashboard/extract_perf.py b/frontend/perf-dashboard/extract_perf.py
index b5afb88..a289fdf 100644
--- a/frontend/perf-dashboard/extract_perf.py
+++ b/frontend/perf-dashboard/extract_perf.py
@@ -21,7 +21,7 @@
import optparse
import os
import re
-import simplejson
+import json
import sys
import time
@@ -118,7 +118,7 @@
result_out.append(perf_items)
file_name = os.path.join(test_dir, result_dict['platform'] + '.txt')
with open(file_name, 'a') as fp:
- fp.write(simplejson.dumps(result_out) + '\n')
+ fp.write(json.dumps(result_out) + '\n')
with open(os.path.join(output_dir, _COMPLETED_ID_FILE_NAME), 'a') as fp:
fp.write(job_id + '\n')
@@ -246,7 +246,7 @@
"""
charts = {}
with open(_CHART_CONFIG_FILE, 'r') as fp:
- charts = simplejson.loads(fp.read())
+ charts = json.loads(fp.read())
# Compute the oldest date for the perf values that we want to consider.
oldest_db_lookup_date = (