diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-09 07:18:57 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-09 07:18:57 -0400 |
commit | 62afac6ad957315b54d9983d2c222777195a938f (patch) | |
tree | ed7279850d45a4e2d912bd064108f25f17348c65 /cherrypy/lib/covercp.py | |
parent | fadccc098225bd185bbba1332733a5145329f82c (diff) | |
download | cherrypy-git-62afac6ad957315b54d9983d2c222777195a938f.tar.gz |
Rely on six for urllib moves.
Diffstat (limited to 'cherrypy/lib/covercp.py')
-rw-r--r-- | cherrypy/lib/covercp.py | 7 |
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'>" |