(self, name, separator="=")
| 49 | self.entries.append(entry) |
| 50 | |
| 51 | def getEntry(self, name, separator="="): |
| 52 | try: |
| 53 | ctx = open(self.fileName).read(-1) |
| 54 | match = re.search("^" + name + ".*", ctx, re.MULTILINE) |
| 55 | if match is None: |
| 56 | return "" |
| 57 | line = match.group(0).split(separator, 1) |
| 58 | return line[1] |
| 59 | except: |
| 60 | return "" |
| 61 | |
| 62 | def save(self): |
| 63 | newLines = [] |
no test coverage detected