Submitter | Yuya Nishihara |
---|---|
Date | May 7, 2018, 1:17 p.m. |
Message ID | <fe85fe4b7cd677ea2267.1525699036@mimosa> |
Download | mbox | patch |
Permalink | /patch/31304/ |
State | Accepted |
Headers | show |
Comments
On Mon, May 07, 2018 at 10:17:16PM +0900, Yuya Nishihara wrote: > # HG changeset patch > # User Yuya Nishihara <yuya@tcha.org> > # Date 1452939833 -32400 > # Sat Jan 16 19:23:53 2016 +0900 > # Node ID fe85fe4b7cd677ea2267c002a8534bc079a82d51 > # Parent fdb6dfcc700e6e3c9751e7b4287bdc231acc27e9 > templatefilters: document the json filter queued, thanks
Patch
diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py --- a/mercurial/templatefilters.py +++ b/mercurial/templatefilters.py @@ -238,6 +238,7 @@ def indent(text, prefix): @templatefilter('json') def json(obj, paranoid=True): + """Any object. Serializes the object to a JSON formatted text.""" if obj is None: return 'null' elif obj is False: