Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
37657:23c4ddda7bbe | 37658:34758397ad1b |
---|---|
346 if self.releasefn: | 346 if self.releasefn: |
347 self.releasefn() | 347 self.releasefn() |
348 if self._parentheld: | 348 if self._parentheld: |
349 lockname = self.parentlock | 349 lockname = self.parentlock |
350 else: | 350 else: |
351 lockname = '%s:%s' % (lock._host, self.pid) | 351 lockname = b'%s:%d' % (lock._host, self.pid) |
352 self._inherited = True | 352 self._inherited = True |
353 try: | 353 try: |
354 yield lockname | 354 yield lockname |
355 finally: | 355 finally: |
356 if self.acquirefn: | 356 if self.acquirefn: |