(self, string, where=-1)
| 87 | self.new_config.insert(where, "%s\n" % string) |
| 88 | |
| 89 | def add(self, string, where=-1): |
| 90 | for index, line in enumerate(self.new_config): |
| 91 | if line.strip() == string: |
| 92 | return False |
| 93 | if where == -1: |
| 94 | self.new_config.append("%s\n" % string) |
| 95 | else: |
| 96 | self.new_config.insert(where, "%s\n" % string) |
| 97 | return True |
| 98 | |
| 99 | def section(self, start, end, content): |
| 100 | sind = -1 |
no test coverage detected