Mercurial > hg
changeset 31367:ef50b491c17d
manifest: ensure paths are bytes (not str) in pure parser
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 12 Mar 2017 03:31:54 -0400 |
parents | 45347d4a4f07 |
children | 6e59397b08d8 |
files | mercurial/manifest.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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