Mercurial > public > mercurial-scm > hg-stable
diff hgext/git/gitutil.py @ 49308:227124098e14
py3: use `x.hex()` instead of `pycompat.sysstr(node.hex(x))`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 31 May 2022 03:06:05 +0200 |
parents | 76f56d69a457 |
children | de9ffb82ef4d |
line wrap: on
line diff
--- a/hgext/git/gitutil.py Tue May 31 02:47:22 2022 +0200 +++ b/hgext/git/gitutil.py Tue May 31 03:06:05 2022 +0200 @@ -1,8 +1,6 @@ """utilities to assist in working with pygit2""" -from mercurial.node import bin, hex, sha1nodeconstants - -from mercurial import pycompat +from mercurial.node import bin, sha1nodeconstants pygit2_module = None @@ -38,7 +36,7 @@ pygit2 and sqlite both need nodes as strings, not bytes. """ assert len(n) == 20 - return pycompat.sysstr(hex(n)) + return n.hex() def fromgitnode(n):