Patchwork [1,of,3] templater: replace jsonescape function with version used by formatter

login
register
mail settings
Submitter Matt Mackall
Date Jan. 12, 2016, 5:01 p.m.
Message ID <544d391bd3b42b96975a.1452618065@ruin.waste.org>
Download mbox | patch
Permalink /patch/12694/
State Changes Requested
Delegated to: Yuya Nishihara
Headers show

Comments

Matt Mackall - Jan. 12, 2016, 5:01 p.m.
# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 1452541423 21600
#      Mon Jan 11 13:43:43 2016 -0600
# Node ID 544d391bd3b42b96975a3521b73c25223db930b0
# Parent  e7d25c2671e3ca60a193415af4277ff403671f4b
templater: replace jsonescape function with version used by formatter

Patch

diff -r e7d25c2671e3 -r 544d391bd3b4 mercurial/templatefilters.py
--- a/mercurial/templatefilters.py	Mon Jan 11 11:35:28 2016 -0600
+++ b/mercurial/templatefilters.py	Mon Jan 11 13:43:43 2016 -0600
@@ -402,7 +402,7 @@ 
     "isodate": isodate,
     "isodatesec": isodatesec,
     "json": json,
-    "jsonescape": jsonescape,
+    "jsonescape": encoding.jsonescape,
     "lower": lower,
     "nonempty": nonempty,
     "obfuscate": obfuscate,