Mercurial > public > mercurial-scm > hg
comparison mercurial/config.py @ 17527:6e11d5cf8e39
spelling: value
author | timeless@mozdev.org |
---|---|
date | Fri, 17 Aug 2012 13:58:19 -0700 |
parents | 5d3d77b3c512 |
children | 0dff04ffa15d |
comparison
equal
deleted
inserted
replaced
17526:1572fd8af69d | 17527:6e11d5cf8e39 |
---|---|
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 a previous value |
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] |