author | Augie Fackler <augie@google.com> |
Sun, 12 Mar 2017 03:31:54 -0400 | |
changeset 31376 | ef50b491c17d |
parent 31375 | 45347d4a4f07 |
child 31377 | 6e59397b08d8 |
--- 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