py3: don't try and format a bare dict into a byte string in callconduit
authorIan Moody <moz-ian@perix.co.uk>
Fri, 08 Mar 2019 23:48:49 +0000
changeset 41899 9a8c7c17d816
parent 41898 2bad8f92cebf
child 41900 47125193bad0
py3: don't try and format a bare dict into a byte string in callconduit Differential Revision: https://phab.mercurial-scm.org/D6104
hgext/phabricator.py
--- a/hgext/phabricator.py	Fri Mar 08 17:57:59 2019 +0000
+++ b/hgext/phabricator.py	Fri Mar 08 23:48:49 2019 +0000
@@ -204,7 +204,7 @@
     """call Conduit API, params is a dict. return json.loads result, or None"""
     host, token = readurltoken(repo)
     url, authinfo = util.url(b'/'.join([host, b'api', name])).authinfo()
-    repo.ui.debug(b'Conduit Call: %s %s\n' % (url, params))
+    repo.ui.debug(b'Conduit Call: %s %s\n' % (url, pycompat.byterepr(params)))
     params = params.copy()
     params[b'api.token'] = token
     data = urlencodenested(params)