cfg = with_closing(file(src_path))(lambda f: yaml.load(f, default_loader))
try: with_closing(file(cache_path, 'w'))(lambda f: f.write(json.write(cfg)))
except: pass # silent failure
cfg = with_closing(file(src_path))(lambda f: yaml.load(f, default_loader))
try: with_closing(file(cache_path, 'w'))(lambda f: f.write(json.write(cfg)))
except: pass # silent failure