Changeset 1933 for trunk/packages/invirt-base/python/invirt/config.py
- Timestamp:
- Dec 28, 2008, 7:19:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.