Revision e8d563f3 lib/objects.py
b/lib/objects.py | ||
---|---|---|
153 | 153 |
" _ContainerFromDicts" % c_type) |
154 | 154 |
return ret |
155 | 155 |
|
156 |
def Copy(self): |
|
157 |
"""Makes a deep copy of the current object and its children. |
|
158 |
|
|
159 |
""" |
|
160 |
dict_form = self.ToDict() |
|
161 |
clone_obj = self.__class__.FromDict(dict_form) |
|
162 |
return clone_obj |
|
163 |
|
|
156 | 164 |
def __repr__(self): |
157 | 165 |
"""Implement __repr__ for ConfigObjects.""" |
158 | 166 |
return repr(self.ToDict()) |
Also available in: Unified diff