mercurial/hgweb/hgweb_mod.py
changeset 2579 0875cda033fd
parent 2558 1120302009d7
child 2580 a20a1bb0c396
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -462,7 +462,7 @@ class hgweb(object):
                 continue
             remain = f[l:]
             if "/" in remain:
-                short = remain[:remain.find("/") + 1] # bleah
+                short = remain[:remain.index("/") + 1] # bleah
                 files[short] = (f, None)
             else:
                 short = os.path.basename(remain)