diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-04 13:11:20 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-04 13:44:14 -0500 |
commit | c314adc4deb7cd43aa985ce2541e39588e4098cb (patch) | |
tree | daedd192da82551b82846fa2ee052ba3422bc9ab /cherrypy/lib/caching.py | |
parent | 513d4bfef99e7e599bc60c7da745d18439567797 (diff) | |
download | cherrypy-git-c314adc4deb7cd43aa985ce2541e39588e4098cb.tar.gz |
Use bytes literals where appropriatev14.0.0
Diffstat (limited to 'cherrypy/lib/caching.py')
-rw-r--r-- | cherrypy/lib/caching.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/lib/caching.py b/cherrypy/lib/caching.py index c4449d85..aa265164 100644 --- a/cherrypy/lib/caching.py +++ b/cherrypy/lib/caching.py @@ -41,7 +41,7 @@ import six import cherrypy from cherrypy.lib import cptools, httputil -from cherrypy._cpcompat import ntob, Event +from cherrypy._cpcompat import Event class Cache(object): @@ -406,7 +406,7 @@ def tee_output(): yield chunk # save the cache data - body = ntob('').join(output) + body = b''.join(output) cherrypy._cache.put((response.status, response.headers or {}, body, response.time), len(body)) |