Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/common.py @ 43447:6ff1a0d109c9 stable
hgweb: fix a few `str` type conditional for py3
Differential Revision: https://phab.mercurial-scm.org/D7534
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 30 Nov 2019 02:53:39 -0500 |
parents | c59eb1560c44 |
children | 29adf0a087a1 |
line wrap: on
line diff
--- 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)