Lines Matching defs:json
21 import json
26 KNOWN_GOOD_FILE = 'known_good.json'
28 SITE_TO_KNOWN_GOOD_FILE = { 'github' : 'known_good.json',
29 'gitlab' : 'known_good_khr.json' }
73 def __init__(self, json):
77 'json': A fully populated JSON object describing the commit.
79 self._json = json
80 self.name = json['name']
81 self.site = json['site']
82 self.subrepo = json['subrepo']
83 self.subdir = json['subdir'] if ('subdir' in json) else '.'
84 self.commit = json['commit']
125 return [GoodCommit(c) for c in json.loads(known_good.read())['commits']]