changeset 49298:76f56d69a457

py3: don’t encode node.bin() argument It accepts str and bytes.
author Manuel Jacob <me@manueljacob.de>
date Tue, 31 May 2022 01:16:41 +0200
parents 6c4c341d8fa5
children 1bf3eb65e970
files hgext/git/gitutil.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/git/gitutil.py	Tue May 31 01:06:29 2022 +0200
+++ b/hgext/git/gitutil.py	Tue May 31 01:16:41 2022 +0200
@@ -44,8 +44,6 @@
 def fromgitnode(n):
     """Opposite of togitnode."""
     assert len(n) == 40
-    if pycompat.ispy3:
-        return bin(n.encode('ascii'))
     return bin(n)