nodemap: use bytes for the error message
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 10 Nov 2019 18:12:50 +0100
changeset 43579 9e1932eb41f9
parent 43578 cbcd72844df1
child 43581 f5991fd7cca7
nodemap: use bytes for the error message Spotted by Yuya Nishihara.
mercurial/revlogutils/__init__.py
--- a/mercurial/revlogutils/__init__.py	Sat Nov 09 16:16:31 2019 +0100
+++ b/mercurial/revlogutils/__init__.py	Sun Nov 10 18:12:50 2019 +0100
@@ -11,4 +11,4 @@
 
 class NodeMap(dict):
     def __missing__(self, x):
-        raise error.RevlogError('unknown node: %s' % x)
+        raise error.RevlogError(b'unknown node: %s' % x)