changeset 13589:b0a4b05c25e2

templatefilters: prefix helper functions
author Patrick Mezard <pmezard@gmail.com>
date Sat, 12 Mar 2011 12:46:31 +0100
parents b8b881f3f3a7
children 1a752dcfe062
files mercurial/templatefilters.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)"