Comments
Patch
@@ -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]
@@ -412,7 +412,7 @@
static = self.ui.config(b"web", b"static", untrusted=False)
if not static:
tp = self.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]
@@ -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)