author | Patrick Mezard <pmezard@gmail.com> |
Sat, 12 Mar 2011 12:46:31 +0100 | |
changeset 13589 | b0a4b05c25e2 |
parent 13588 | b8b881f3f3a7 |
child 13590 | 1a752dcfe062 |
--- a/mercurial/templatefilters.py Sat Mar 12 12:46:31 2011 +0100 +++ b/mercurial/templatefilters.py Sat Mar 12 12:46:31 2011 +0100 @@ -129,7 +129,7 @@ else: raise TypeError('cannot encode type %s' % obj.__class__.__name__) -def uescape(c): +def _uescape(c): if ord(c) < 0x80: return c else: @@ -143,7 +143,7 @@ def jsonescape(s): for k, v in _escapes: s = s.replace(k, v) - return ''.join(uescape(c) for c in s) + return ''.join(_uescape(c) for c in s) def nonempty(str): return str or "(none)"