- Timestamp:
- Jul 30, 2008, 9:39:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py
r784 r792 5 5 default_src_path = '/etc/invirt/master.yaml' 6 6 default_cache_path = '/var/lib/invirt/cache.json' 7 8 try: default_loader = yaml.CSafeLoader9 except: default_loader = yaml.SafeLoader10 7 11 8 def load(src_path = default_src_path, … … 38 35 def cfg(): 39 36 import yaml 37 try: default_loader = yaml.CSafeLoader 38 except: default_loader = yaml.SafeLoader 40 39 cfg = with_closing(file(src_path))(lambda f: yaml.load(f, default_loader)) 41 40 try: with_closing(file(cache_path, 'w'))(lambda f: f.write(json.write(cfg)))
Note: See TracChangeset
for help on using the changeset viewer.