Mercurial > public > mercurial-scm > hg
comparison mercurial/branchmap.py @ 43499:1a47fe4bc154
branchmap: pytype is confused about bytestr
Differential Revision: https://phab.mercurial-scm.org/D7290
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 06 Nov 2019 16:30:14 -0500 |
parents | d783f945a701 |
children | 9f70512ae2cf |
comparison
equal
deleted
inserted
replaced
43498:3b31ee5388f3 | 43499:1a47fe4bc154 |
---|---|
267 | 267 |
268 except Exception as inst: | 268 except Exception as inst: |
269 if repo.ui.debugflag: | 269 if repo.ui.debugflag: |
270 msg = b'invalid %s: %s\n' | 270 msg = b'invalid %s: %s\n' |
271 repo.ui.debug( | 271 repo.ui.debug( |
272 msg % (_branchcachedesc(repo), pycompat.bytestr(inst)) | 272 msg |
273 % ( | |
274 _branchcachedesc(repo), | |
275 pycompat.bytestr( | |
276 inst # pytype: disable=wrong-arg-types | |
277 ), | |
278 ) | |
273 ) | 279 ) |
274 bcache = None | 280 bcache = None |
275 | 281 |
276 finally: | 282 finally: |
277 if f: | 283 if f: |