mercurial/manifest.py
changeset 31367 ef50b491c17d
parent 31366 45347d4a4f07
child 31476 413b44003462
--- a/mercurial/manifest.py	Sun Mar 12 03:30:15 2017 -0400
+++ b/mercurial/manifest.py	Sun Mar 12 03:31:54 2017 -0400
@@ -255,8 +255,8 @@
         return self.data[start:end]
 
     def __getitem__(self, key):
-        if not isinstance(key, str):
-            raise TypeError("getitem: manifest keys must be a string.")
+        if not isinstance(key, bytes):
+            raise TypeError("getitem: manifest keys must be a bytes.")
         needle = self.bsearch(key)
         if needle == -1:
             raise KeyError