# HG changeset patch # User Augie Fackler # Date 2018-04-14 02:36:54 # Node ID b29f490eb9047d4cda0fb4eea8d12628d05695af # Parent 42567ffa10a269bf4b9de2fa3fb275852218cd31 hgweb_mod: inform hgweb class about paths actually being bytes Differential Revision: https://phab.mercurial-scm.org/D3355 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 @@ class hgweb(object): 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: