Mercurial > hg
changeset 44965:8439351d3208 stable
py3: use `%d` for int in % formatting
On Python 3, `%s` is an alias to `%b`, which requires that the object implements
`__bytes__()`, which is not the case for `int`.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Mon, 15 Jun 2020 03:34:23 +0200 |
parents | d96d8bbbedb1 |
children | 0c27d981131a |
files | hgext/convert/subversion.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Mon Jun 15 03:30:24 2020 +0200 +++ b/hgext/convert/subversion.py Mon Jun 15 03:34:23 2020 +0200 @@ -773,7 +773,7 @@ self.convertfp.flush() def revid(self, revnum, module=None): - return b'svn:%s%s@%s' % (self.uuid, module or self.module, revnum) + return b'svn:%s%s@%d' % (self.uuid, module or self.module, revnum) def revnum(self, rev): return int(rev.split(b'@')[-1])