Mercurial > hg
changeset 24321:0a714a1f7d5c
formatter: convert None to json null
It will be used by "annotate" command to represent the workingctx revision.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 17 Sep 2014 22:34:34 +0900 |
parents | b9f7f3eeb99c |
children | f263814c72ac |
files | mercurial/formatter.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/formatter.py Sun Aug 17 11:35:31 2014 +0900 +++ b/mercurial/formatter.py Wed Sep 17 22:34:34 2014 +0900 @@ -98,6 +98,8 @@ def _jsonifyobj(v): if isinstance(v, tuple): return '[' + ', '.join(_jsonifyobj(e) for e in v) + ']' + elif v is None: + return 'null' elif v is True: return 'true' elif v is False: