diff mercurial/hgweb/webcommands.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 8ff1ecfadcd1
children 3e4294aa7944
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sat Nov 30 02:38:42 2019 -0500
+++ b/mercurial/hgweb/webcommands.py	Sat Nov 30 02:53:39 2019 -0500
@@ -1321,7 +1321,7 @@
     static = web.config(b"web", b"static", untrusted=False)
     if not static:
         tp = web.templatepath or templater.templatepaths()
-        if isinstance(tp, str):
+        if isinstance(tp, bytes):
             tp = [tp]
         static = [os.path.join(p, b'static') for p in tp]