Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/common.py @ 43811:29adf0a087a1
merge with stable
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 05 Dec 2019 11:15:19 -0500 |
parents | 9f70512ae2cf 6ff1a0d109c9 |
children | 9a5c4875a88c |
comparison
equal
deleted
inserted
replaced
43810:765a9c299c44 | 43811:29adf0a087a1 |
---|---|
189 """ | 189 """ |
190 if not ispathsafe(fname): | 190 if not ispathsafe(fname): |
191 return | 191 return |
192 | 192 |
193 fpath = os.path.join(*fname.split(b'/')) | 193 fpath = os.path.join(*fname.split(b'/')) |
194 if isinstance(directory, str): | 194 if isinstance(directory, bytes): |
195 directory = [directory] | 195 directory = [directory] |
196 for d in directory: | 196 for d in directory: |
197 path = os.path.join(d, fpath) | 197 path = os.path.join(d, fpath) |
198 if os.path.exists(path): | 198 if os.path.exists(path): |
199 break | 199 break |