mercurial/hgweb/common.py
changeset 45306 9a5c4875a88c
parent 43793 29adf0a087a1
child 45378 dc9fe90bdbd5
--- a/mercurial/hgweb/common.py	Fri Jul 31 10:05:07 2020 -0700
+++ b/mercurial/hgweb/common.py	Mon Aug 03 22:15:45 2020 -0700
@@ -191,12 +191,7 @@
         return
 
     fpath = os.path.join(*fname.split(b'/'))
-    if isinstance(directory, bytes):
-        directory = [directory]
-    for d in directory:
-        path = os.path.join(d, fpath)
-        if os.path.exists(path):
-            break
+    path = os.path.join(directory, fpath)
     try:
         os.stat(path)
         ct = pycompat.sysbytes(