# HG changeset patch # User Augie Fackler <au...@google.com> # Date 1489303788 14400 # Sun Mar 12 03:29:48 2017 -0400 # Node ID 65576cf9d641ace0f86c3b359cf9baa07c8a100d # Parent 90450bdc25b4adba9e4941b62f3b77c264636842 manifest: use node.bin instead of .decode('hex')
The latter doesn't work in Python 3. diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -12,6 +12,7 @@ import os import struct from .i18n import _ +from .node import bin from . import ( error, mdiff, @@ -151,7 +152,7 @@ class lazymanifestiterentries(object): __next__ = next def unhexlify(data, extra, pos, length): - s = data[pos:pos + length].decode('hex') + s = bin(data[pos:pos + length]) if extra: s += chr(extra & 0xff) return s _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel