mercurial/wireprotov1server.py
changeset 41468 9cb51e74e9ad
parent 41365 876494fd967d
child 41840 d6569f1e9b37
--- a/mercurial/wireprotov1server.py	Wed Jan 30 12:55:44 2019 -0800
+++ b/mercurial/wireprotov1server.py	Wed Jan 30 13:07:20 2019 -0800
@@ -7,6 +7,7 @@
 
 from __future__ import absolute_import
 
+import binascii
 import os
 
 from .i18n import _
@@ -344,7 +345,7 @@
       one specific branch of many.
     """
     def decodehexstring(s):
-        return set([h.decode('hex') for h in s.split(';')])
+        return set([binascii.unhexlify(h) for h in s.split(';')])
 
     manifest = repo.vfs.tryread('pullbundles.manifest')
     if not manifest: