# HG changeset patch # User Manuel Jacob # Date 1653952601 -7200 # Node ID 76f56d69a457a1a57b305d566ad743384222c14d # Parent 6c4c341d8fa57c0a5a95eebe8c740ea81d0b056b py3: don’t encode node.bin() argument It accepts str and bytes. diff -r 6c4c341d8fa5 -r 76f56d69a457 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)