Lines Matching +full:js +full:- +full:yaml
8 # http://www.apache.org/licenses/LICENSE-2.0
16 # produces cleaner build.yaml files
22 import yaml
52 "tag:yaml.org,2002:map", list(odict.items())
56 yaml.add_representer(collections.OrderedDict, repr_ordered_dict)
88 """Takes dictionary which represents yaml file and returns the cleaned-up yaml string"""
89 js = _rebuild_as_ordered_dict(indict, _TOP_LEVEL_KEYS)
91 if grp not in js:
93 js[grp] = sorted(
94 [_clean_elem(x) for x in js[grp]],
97 output = yaml.dump(js, indent=2, width=80, default_flow_style=False)
109 js = yaml.safe_load(f) variable
110 output = cleaned_build_yaml_dict_as_string(js)
115 "Looks like build-cleaner.py has not been run for file"