bundles / astropy latest / astropy / extern / configobj / configobj / Section / merge
function
astropy.extern.configobj.configobj:Section.merge
source: /astropy/extern/configobj/configobj.py :783
Signature
def merge ( self , indict ) Summary
A recursive update - useful for merging config files.
Extended Summary
>>> a = '''[section1] ... option1 = True ... [[subsection]] ... more_options = False ... # end of file'''.splitlines() >>> b = '''# File is user.ini ... [section1] ... option1 = False ... # end of file'''.splitlines() >>> c1 = ConfigObj(b) >>> c2 = ConfigObj(a) >>> c2.merge(c1) >>> c2 ConfigObj({'section1': {'option1': 'False', 'subsection': {'more_options': 'False'}}})
Aliases
-
astropy.config.configuration.configobj.Section.merge