-
Committer:
albertomilone at alice
-
Date:
2008-12-22 15:29:15 UTC
-
mfrom:
(33.1.12 comments-support)
-
Revision ID:
albertomilone@alice.it-20081222152915-asi87khw3ehu5pry
release 0.4.
* xorgparser.py:
- preserve commented lines inside sections too
- add removeSection()
- add commentOut{Option|SubOption|Section|SubSection}()
o the new Comments key in self.globaldict contains commented options and
subsections before these are merged into self.comments
o when a whole section is commented out, its content and its subsections are
immediately moved to self.comments
o commented lines are not meant to be uncommented
o commented lines are ignored by the validator
- add getSubSections()
o return the subsections contained in the section passed as an argument
- separate __getOptionsToBlacklist() from removeOption() so that it can be shared
with commentOutOption()
- docstrings clean-up
* 0-test.py:
- add tests for the new methods in xorgparser.py