Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 46796:e2f7b2695ba1
merge with stable
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 18 Mar 2021 18:24:59 -0400 |
parents | af7535249ea9 1099541b6462 |
children | d4ba4d51f85f |
line wrap: on
line diff
--- a/mercurial/hg.py Tue Mar 02 00:05:22 2021 +0100 +++ b/mercurial/hg.py Thu Mar 18 18:24:59 2021 -0400 @@ -41,7 +41,6 @@ mergestate as mergestatemod, narrowspec, phases, - pycompat, requirements, scmutil, sshpeer, @@ -53,7 +52,11 @@ verify as verifymod, vfs as vfsmod, ) -from .utils import hashutil +from .utils import ( + hashutil, + stringutil, +) + release = lock.release @@ -74,7 +77,7 @@ # Python 2 raises TypeError, Python 3 ValueError. except (TypeError, ValueError) as e: raise error.Abort( - _(b'invalid path %s: %s') % (path, pycompat.bytestr(e)) + _(b'invalid path %s: %s') % (path, stringutil.forcebytestr(e)) ) except OSError: isfile = False