Mercurial > public > mercurial-scm > hg
diff mercurial/util.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 | e7cfe3587ea4 |
children | 31f32a96e1e3 |
line wrap: on
line diff
--- a/mercurial/util.py Wed Aug 15 22:38:42 2012 +0200 +++ b/mercurial/util.py Wed Aug 15 22:39:18 2012 +0200 @@ -1477,7 +1477,11 @@ for a in _hexdig for b in _hexdig) def _urlunquote(s): - """unquote('abc%20def') -> 'abc def'.""" + """Decode HTTP/HTML % encoding. + + >>> _urlunquote('abc%20def') + 'abc def' + """ res = s.split('%') # fastpath if len(res) == 1: