lock: use %d to format integer into a bytestring
authorAugie Fackler <augie@google.com>
Sun, 12 Mar 2017 03:29:04 -0400
changeset 31354 e6a2b625e0d9
parent 31353 089e37802fb3
child 31355 77270ec0cdd9
lock: use %d to format integer into a bytestring
mercurial/lock.py
--- a/mercurial/lock.py	Sun Mar 12 00:44:59 2017 -0500
+++ b/mercurial/lock.py	Sun Mar 12 03:29:04 2017 -0400
@@ -118,7 +118,7 @@
             return
         if lock._host is None:
             lock._host = _getlockprefix()
-        lockname = '%s:%s' % (lock._host, self.pid)
+        lockname = '%s:%d' % (lock._host, self.pid)
         retry = 5
         while not self.held and retry:
             retry -= 1