equal
deleted
inserted
replaced
65 self._source.update(src._source) |
65 self._source.update(src._source) |
66 def get(self, section, item, default=None): |
66 def get(self, section, item, default=None): |
67 return self._data.get(section, {}).get(item, default) |
67 return self._data.get(section, {}).get(item, default) |
68 |
68 |
69 def backup(self, section, item): |
69 def backup(self, section, item): |
70 """return a tuple allowing restore to reinstall a previous valuesi |
70 """return a tuple allowing restore to reinstall previous values |
71 |
71 |
72 The main reason we need it is because it handle the "no data" case. |
72 The main reason we need it is because it handle the "no data" case. |
73 """ |
73 """ |
74 try: |
74 try: |
75 value = self._data[section][item] |
75 value = self._data[section][item] |