- Timestamp:
- Dec 28, 2008, 7:19:55 PM (16 years ago)
- Location:
- trunk/packages/invirt-base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-base/debian/changelog
r1929 r1933 3 3 * run_parts_list: fix unclear docstring 4 4 * config-init.sh: degrade to non-bash gracefully, document better 5 6 -- Greg Price <price@mit.edu> Sun, 28 Dec 2008 02:46:33 -0500 5 * invirt.config: fix an error on empty config files 6 7 -- Greg Price <price@mit.edu> Sun, 28 Dec 2008 19:16:03 -0500 7 8 8 9 invirt-base (0.0.17) unstable; urgency=low -
trunk/packages/invirt-base/python/invirt/config.py
r1926 r1933 21 21 """Splice dict-tree d2 into d1. Return d1. 22 22 23 d2 may be None for an empty dict-tree, because yaml.load produces that. 24 23 25 Example: 24 26 >>> d = {'a': {'b': 1}, 'c': 2} … … 28 30 {'a': {'b', 1, 'd': 3}, 'c': 2} 29 31 """ 32 if d2 is None: 33 return d1 30 34 for k in d2: 31 35 if k in d1 and isinstance(d1[k], dict):
Note: See TracChangeset
for help on using the changeset viewer.