py3: don’t encode node.bin() argument
authorManuel Jacob <me@manueljacob.de>
Tue, 31 May 2022 01:16:41 +0200
changeset 49290 76f56d69a457
parent 49289 6c4c341d8fa5
child 49291 1bf3eb65e970
py3: don’t encode node.bin() argument It accepts str and bytes.
hgext/git/gitutil.py
--- 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)