mercurial/localrepo.py
branchstable
changeset 46572 d5d9177c0045
parent 46571 25392c48da8a
child 46675 6f4a481f182a
child 46792 7e08fa9b3d13
equal deleted inserted replaced
46571:25392c48da8a 46572:d5d9177c0045
   538             if e.errno != errno.ENOENT:
   538             if e.errno != errno.ENOENT:
   539                 raise
   539                 raise
   540         except ValueError as e:
   540         except ValueError as e:
   541             # Can be raised on Python 3.8 when path is invalid.
   541             # Can be raised on Python 3.8 when path is invalid.
   542             raise error.Abort(
   542             raise error.Abort(
   543                 _(b'invalid path %s: %s') % (path, pycompat.bytestr(e))
   543                 _(b'invalid path %s: %s') % (path, stringutil.forcebytestr(e))
   544             )
   544             )
   545 
   545 
   546         raise error.RepoError(_(b'repository %s not found') % path)
   546         raise error.RepoError(_(b'repository %s not found') % path)
   547 
   547 
   548     requirements = _readrequires(hgvfs, True)
   548     requirements = _readrequires(hgvfs, True)