Changeset 784 for trunk/packages/sipb-xen-base/files/usr
- Timestamp:
- Jul 29, 2008, 11:39:06 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
r781 r784 1 import json , yaml1 import json 2 2 from invirt.common import * 3 3 from os.path import getmtime … … 37 37 @with_lock_file('/var/lib/invirt/cache.lock') 38 38 def cfg(): 39 import yaml 39 40 cfg = with_closing(file(src_path))(lambda f: yaml.load(f, default_loader)) 40 41 try: with_closing(file(cache_path, 'w'))(lambda f: f.write(json.write(cfg)))
Note: See TracChangeset
for help on using the changeset viewer.