# HG changeset patch # User Ian Moody # Date 1552088929 0 # Node ID 9a8c7c17d816913ed5c44845912491558bee7520 # Parent 2bad8f92cebfca394a04337d4e8d8f298b30803e py3: don't try and format a bare dict into a byte string in callconduit Differential Revision: https://phab.mercurial-scm.org/D6104 diff -r 2bad8f92cebf -r 9a8c7c17d816 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)