Changeset 816 for trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py
- Timestamp:
- Aug 2, 2008, 8:28:18 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
r807 r816 1 1 import json 2 2 from invirt.common import * 3 from os import rename 3 4 from os.path import getmtime 4 5 … … 75 76 lambda f: f.write(json.write(ns.cfg))) 76 77 except: pass # silent failure 77 else: os.rename(cache_path + '.tmp', cache_path)78 else: rename(cache_path + '.tmp', cache_path) 78 79 except IOError: 79 80 ns.cfg = with_closing(file(src_path)) (
Note: See TracChangeset
for help on using the changeset viewer.