/usr/share/pyshared/juju/lib/serializer.py is in juju-0.7 0.7-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from yaml import CSafeLoader, CSafeDumper, Mark
from yaml import dump as _dump
from yaml import load as _load
def dump(value):
return _dump(value, Dumper=CSafeDumper)
yaml_dump = dump
def load(value):
return _load(value, Loader=CSafeLoader)
yaml_load = load
def yaml_mark_with_path(path, mark):
# yaml c ext, cant be modded, convert to capture path
return Mark(
path, mark.index,
mark.line, mark.column,
mark.buffer, mark.pointer)
|