hgext/git/gitutil.py
changeset 49300 227124098e14
parent 49290 76f56d69a457
child 49849 de9ffb82ef4d
--- 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):