Mercurial > hg
diff hgext/phabricator.py @ 41078:46e0563c67db
merge with stable
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 30 Dec 2018 17:31:57 +0900 |
parents | 536beb130f3c d7d3164e6a31 |
children | 9d35ae3d9999 |
line wrap: on
line diff
--- a/hgext/phabricator.py Thu Dec 27 15:19:46 2018 -0800 +++ b/hgext/phabricator.py Sun Dec 30 17:31:57 2018 +0900 @@ -155,6 +155,8 @@ """ flatparams = util.sortdict() def process(prefix, obj): + if isinstance(obj, bool): + obj = {True: b'true', False: b'false'}[obj] # Python -> PHP form items = {list: enumerate, dict: lambda x: x.items()}.get(type(obj)) if items is None: flatparams[prefix] = obj