Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 36737:250f3168d907
hgweb: fix up trailing slash detection on Python 3
Fixes a couple of hgweb tests.
Differential Revision: https://phab.mercurial-scm.org/D2661
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 04 Mar 2018 13:04:12 -0500 |
parents | 24897a9d18ac |
children | 1a1972b1a1ff |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Mar 04 13:03:22 2018 -0500 +++ b/mercurial/hgweb/webcommands.py Sun Mar 04 13:04:12 2018 -0500 @@ -495,7 +495,7 @@ dirs = {} parity = paritygen(web.stripecount) - if path and path[-1] != "/": + if path and path[-1:] != "/": path += "/" l = len(path) abspath = "/" + path