Patchwork [1,of,7] templatefilters: drop broken "jsonescape" from filters table (BC)

login
register
mail settings
Submitter Yuya Nishihara
Date Feb. 23, 2016, 3:45 p.m.
Message ID <c3b06211f48df5033e7c.1456242326@mimosa>
Download mbox | patch
Permalink /patch/13313/
State Accepted
Delegated to: Augie Fackler
Headers show

Comments

Yuya Nishihara - Feb. 23, 2016, 3:45 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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,