changeset 37746:b29f490eb904

hgweb_mod: inform hgweb class about paths actually being bytes Differential Revision: https://phab.mercurial-scm.org/D3355
author Augie Fackler <augie@google.com>
date Fri, 13 Apr 2018 22:36:54 -0400
parents 42567ffa10a2
children 2d5b5bcc3b9f
files mercurial/hgweb/hgweb_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Fri Apr 13 22:33:38 2018 -0400
+++ b/mercurial/hgweb/hgweb_mod.py	Fri Apr 13 22:36:54 2018 -0400
@@ -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: