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)