diff mercurial/lock.py @ 31363:e6a2b625e0d9

lock: use %d to format integer into a bytestring
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 03:29:04 -0400
parents 1f151a33af8e
children d57aa655ce97
line wrap: on
line diff
--- 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