# HG changeset patch # User Manuel Jacob # Date 2022-05-30 23:16:41 # Node ID 76f56d69a457a1a57b305d566ad743384222c14d # Parent 6c4c341d8fa57c0a5a95eebe8c740ea81d0b056b py3: don’t encode node.bin() argument It accepts str and bytes. diff --git a/hgext/git/gitutil.py b/hgext/git/gitutil.py --- a/hgext/git/gitutil.py +++ b/hgext/git/gitutil.py @@ -44,8 +44,6 @@ def togitnode(n): def fromgitnode(n): """Opposite of togitnode.""" assert len(n) == 40 - if pycompat.ispy3: - return bin(n.encode('ascii')) return bin(n)