-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
Using ConfigObj v5.0.6, consider this:
import sys
from StringIO import StringIO
from configobj import ConfigObj
c = ConfigObj(StringIO("""[Section1]"""))
d = ConfigObj(StringIO("""[Section1]
# This is a Section2 comment
[[Section2]]
option2 = foo
"""))
c.merge(d)
c.write(sys.stdout)The output is:
[Section1]
[[Section2]]
option2 = foo
while I would have expected
[Section1]
# This is a Section2 comment
[[Section2]]
option2 = foo
Metadata
Metadata
Assignees
Labels
No labels