Skip to content
Snippets Groups Projects
Commit 261dd98e authored by Craig Tiller's avatar Craig Tiller
Browse files

Use Python json module

Instead of third party simplejson module, to save a dependency.
parent 55c3b27d
No related branches found
No related tags found
No related merge requests found
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
import argparse import argparse
import glob import glob
import itertools import itertools
import json
import multiprocessing import multiprocessing
import os import os
import sys import sys
import time import time
import jobset import jobset
import simplejson
import watch_dirs import watch_dirs
...@@ -159,12 +159,12 @@ class TestCache(object): ...@@ -159,12 +159,12 @@ class TestCache(object):
def save(self): def save(self):
with open('.run_tests_cache', 'w') as f: with open('.run_tests_cache', 'w') as f:
f.write(simplejson.dumps(self.dump())) f.write(json.dumps(self.dump()))
def maybe_load(self): def maybe_load(self):
if os.path.exists('.run_tests_cache'): if os.path.exists('.run_tests_cache'):
with open('.run_tests_cache') as f: with open('.run_tests_cache') as f:
self.parse(simplejson.loads(f.read())) self.parse(json.loads(f.read()))
def _build_and_run(check_cancelled, newline_on_success, cache): def _build_and_run(check_cancelled, newline_on_success, cache):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment