diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -208,7 +208,7 @@ be multiple active threads inside __call__. """ def __init__(self, repo, name=None, baseui=None): - if isinstance(repo, str): + if isinstance(repo, bytes): if baseui: u = baseui.copy() else: