DiffSK/configobj

BUG: having a dict in the config file causes .merge method to fail

bob37van opened this issue · 1 comments

Given two configuration files, A, and B, if A contains a dict item (such as defined by:
thisDict = """{'foo': 'bar')"""

then if cfgA=ConfigObj(A) and cfgB=ConfigObj(B) then
cfgA.merge(cfgB) # throws an exception

The .merge method iterates through dicts and successfully calls .merge on them, whereas it should iterate through only the dicts which are Sections.

I think I understand this bug report but I'm going to flag it to actually confirm in the code what may be happening