def load(self):
        if self.savefile is None:
            return
        if os.path.exists(self.savefile):
            try:
                # set dirty flag and re-save if invalid data in save file
                dirty = False
                data = json.load(open(self.savefile))
                for item in data:
                    name, rec = item.items()[0]
                    type_ = rec.pop('type')
                    if name and rec:
                        (success, msg) = self.set_record(name, type_, rec, False)
                        log.msg(msg)
                        if not success:
                            dirty = True
                if dirty:
                    self.save()
            except __HOLE__:
                log.msg("No JSON in save file")
dataset/ETHPy150Open yaybu/callsign/callsign/dns.py/RuntimeAuthority.load