summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzakj <none@none>2007-10-30 23:16:54 +0000
committerzakj <none@none>2007-10-30 23:16:54 +0000
commit30fc7dcea20d4b502c99cf09e10b4e5a4c8ed852 (patch)
tree461cdbe270f04ea319f744011db05311bf441bd9
parent268ec625ab26c62805fa4c8478fddf69fcb9317b (diff)
downloadcherrypy-git-30fc7dcea20d4b502c99cf09e10b4e5a4c8ed852.tar.gz
Coerced all path names in covercp.py to lower-case, since some versions of
coverage do so.
-rw-r--r--cherrypy/lib/covercp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/lib/covercp.py b/cherrypy/lib/covercp.py
index 9ad83f6d..ecc8cf47 100644
--- a/cherrypy/lib/covercp.py
+++ b/cherrypy/lib/covercp.py
@@ -195,7 +195,7 @@ def _show_branch(root, base, path, pct=0, showpct=False, exclude=""):
for name in dirs:
newpath = os.path.join(path, name)
- if newpath.startswith(base):
+ if newpath.lower().startswith(base):
relpath = newpath[len(base):]
yield "| " * relpath.count(os.sep)
yield "<a class='directory' href='menu?base=%s&exclude=%s'>%s</a>\n" % \
@@ -205,7 +205,7 @@ def _show_branch(root, base, path, pct=0, showpct=False, exclude=""):
yield chunk
# Now list the files
- if path.startswith(base):
+ if path.lower().startswith(base):
relpath = path[len(base):]
files = [k for k, v in root.iteritems() if not v]
files.sort()