Mercurial > hg
diff mercurial/lock.py @ 37658:34758397ad1b
py3: use b"%d" instead of str() to convert integers to bytes
Differential Revision: https://phab.mercurial-scm.org/D3319
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 13 Apr 2018 16:30:27 +0530 |
parents | a8a902d7176e |
children | 575f59cdd8a1 |
line wrap: on
line diff
--- a/mercurial/lock.py Fri Apr 13 12:50:47 2018 -0700 +++ b/mercurial/lock.py Fri Apr 13 16:30:27 2018 +0530 @@ -348,7 +348,7 @@ if self._parentheld: lockname = self.parentlock else: - lockname = '%s:%s' % (lock._host, self.pid) + lockname = b'%s:%d' % (lock._host, self.pid) self._inherited = True try: yield lockname