Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/config.py @ 17425:e95ec38f86b0
fix wording and not-completely-trivial spelling errors and bad docstrings
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 15 Aug 2012 22:39:18 +0200 |
parents | 5d3d77b3c512 |
children | 31f32a96e1e3 |
comparison
equal
deleted
inserted
replaced
17424:e7cfe3587ea4 | 17425:e95ec38f86b0 |
---|---|
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] |