summaryrefslogtreecommitdiff
path: root/cherrypy/lib/covercp.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-07-09 07:18:57 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-07-09 07:18:57 -0400
commit62afac6ad957315b54d9983d2c222777195a938f (patch)
treeed7279850d45a4e2d912bd064108f25f17348c65 /cherrypy/lib/covercp.py
parentfadccc098225bd185bbba1332733a5145329f82c (diff)
downloadcherrypy-git-62afac6ad957315b54d9983d2c222777195a938f.tar.gz
Rely on six for urllib moves.
Diffstat (limited to 'cherrypy/lib/covercp.py')
-rw-r--r--cherrypy/lib/covercp.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cherrypy/lib/covercp.py b/cherrypy/lib/covercp.py
index 5b214a23..8eebbbf9 100644
--- a/cherrypy/lib/covercp.py
+++ b/cherrypy/lib/covercp.py
@@ -26,8 +26,9 @@ import cgi
import os
import os.path
+from six.moves import urllib
+
import cherrypy
-from cherrypy._cpcompat import quote_plus
localFile = os.path.join(os.path.dirname(__file__), 'coverage.cache')
@@ -212,7 +213,7 @@ def _show_branch(root, base, path, pct=0, showpct=False, exclude='',
yield (
"<a class='directory' "
"href='menu?base=%s&exclude=%s'>%s</a>\n" %
- (newpath, quote_plus(exclude), name)
+ (newpath, urllib.parse.quote_plus(exclude), name)
)
for chunk in _show_branch(
@@ -316,7 +317,7 @@ class CoverStats(object):
for atom in atoms:
path += atom + os.sep
yield ("<a href='menu?base=%s&exclude=%s'>%s</a> %s"
- % (path, quote_plus(exclude), atom, os.sep))
+ % (path, urllib.parse.quote_plus(exclude), atom, os.sep))
yield '</div>'
yield "<div id='tree'>"