diff -r 8accf5fa9930 -r 6ff1a0d109c9 mercurial/hgweb/common.py --- a/mercurial/hgweb/common.py Sat Nov 30 02:38:42 2019 -0500 +++ b/mercurial/hgweb/common.py Sat Nov 30 02:53:39 2019 -0500 @@ -193,7 +193,7 @@ return fpath = os.path.join(*fname.split(b'/')) - if isinstance(directory, str): + if isinstance(directory, bytes): directory = [directory] for d in directory: path = os.path.join(d, fpath)