# HG changeset patch # User Patrick Mezard # Date 2011-03-12 11:46:31 # Node ID b0a4b05c25e2cee371621b3eb44113e96cce6b7d # Parent b8b881f3f3a78c0b22015c91cf2500835e630e4a templatefilters: prefix helper functions diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py --- a/mercurial/templatefilters.py +++ b/mercurial/templatefilters.py @@ -129,7 +129,7 @@ def json(obj): 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 uescape(c): 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)"