mercurial/branchmap.py
changeset 51459 de1bc7db9f61
parent 51458 47752632b4fc
child 51460 87b830e4de35
equal deleted inserted replaced
51458:47752632b4fc 51459:de1bc7db9f61
   494             return None
   494             return None
   495 
   495 
   496         except Exception as inst:
   496         except Exception as inst:
   497             if repo.ui.debugflag:
   497             if repo.ui.debugflag:
   498                 msg = b'invalid %s: %s\n'
   498                 msg = b'invalid %s: %s\n'
   499                 repo.ui.debug(
   499                 msg %= (
   500                     msg
   500                     _branchcachedesc(repo),
   501                     % (
   501                     stringutil.forcebytestr(inst),
   502                         _branchcachedesc(repo),
       
   503                         stringutil.forcebytestr(inst),
       
   504                     )
       
   505                 )
   502                 )
       
   503                 repo.ui.debug(msg)
   506             bcache = None
   504             bcache = None
   507 
   505 
   508         finally:
   506         finally:
   509             if f:
   507             if f:
   510                 f.close()
   508                 f.close()