[PATCH 1 of 7] templatefilters: drop broken "jsonescape" from filters table (BC)
Yuya Nishihara
yuya at tcha.org
Tue Feb 23 15:45:26 UTC 2016
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1451204205 -32400
# Sun Dec 27 17:16:45 2015 +0900
# Node ID c3b06211f48df5033e7cfdb68c84ce115dd6a30b
# Parent e8d1460e2a7282d9433c26ace281b20b16ca6335
templatefilters: drop broken "jsonescape" from filters table (BC)
It's been unused, undocumented and flawed in that it expects a unicode input,
never works correctly if an input has non-ascii character. We should use "json"
filter instead.
diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py
--- a/mercurial/templatefilters.py
+++ b/mercurial/templatefilters.py
@@ -402,7 +402,6 @@ filters = {
"isodate": isodate,
"isodatesec": isodatesec,
"json": json,
- "jsonescape": jsonescape,
"lower": lower,
"nonempty": nonempty,
"obfuscate": obfuscate,
More information about the Mercurial-devel
mailing list