Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 36453:2831d918e1b4
py3: convert known-int values to bytes using %d
I decided to grep around for \sstr\( and see what low-hanging fruit
that showed me. This was part of that hunt. That grep pattern still
has some things worth exploring.
Differential Revision: https://phab.mercurial-scm.org/D2441
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 25 Feb 2018 23:09:07 -0500 |
parents | 04c319a07c7b |
children | 724ddf2444a7 |
line wrap: on
line diff
--- a/mercurial/exchange.py Sun Feb 25 23:08:41 2018 -0500 +++ b/mercurial/exchange.py Sun Feb 25 23:09:07 2018 -0500 @@ -1151,8 +1151,8 @@ for newremotehead in outdated: r = pushop.remote.pushkey('phases', newremotehead.hex(), - str(phases.draft), - str(phases.public)) + ('%d' % phases.draft), + ('%d' % phases.public)) if not r: pushop.ui.warn(_('updating %s to public failed!\n') % newremotehead)