Mercurial > public > mercurial-scm > hg
comparison mercurial/config.py @ 17530:0dff04ffa15d
grammar: it-handles
author | timeless@mozdev.org |
---|---|
date | Fri, 17 Aug 2012 13:58:19 -0700 |
parents | 6e11d5cf8e39 |
children | 31f32a96e1e3 |
comparison
equal
deleted
inserted
replaced
17529:b61a62714346 | 17530:0dff04ffa15d |
---|---|
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 value | 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 handles the "no data" case. |
73 """ | 73 """ |
74 try: | 74 try: |
75 value = self._data[section][item] | 75 value = self._data[section][item] |
76 source = self.source(section, item) | 76 source = self.source(section, item) |
77 return (section, item, value, source) | 77 return (section, item, value, source) |