Return True if option is added or changed to value, else False. Add section if required. False means option already had value.
(self, section, option, value)
| 82 | """ |
| 83 | |
| 84 | def SetOption(self, section, option, value): |
| 85 | """Return True if option is added or changed to value, else False. |
| 86 | |
| 87 | Add section if required. False means option already had value. |
| 88 | """ |
| 89 | if self.has_option(section, option): |
| 90 | if self.get(section, option) == value: |
| 91 | return False |
| 92 | else: |
| 93 | self.set(section, option, value) |
| 94 | return True |
| 95 | else: |
| 96 | if not self.has_section(section): |
| 97 | self.add_section(section) |
| 98 | self.set(section, option, value) |
| 99 | return True |
| 100 | |
| 101 | def RemoveOption(self, section, option): |
| 102 | """Return True if option is removed from section, else False. |
nothing calls this directly
no test coverage detected