summaryrefslogtreecommitdiff
path: root/cherrypy/lib/caching.py
diff options
context:
space:
mode:
Diffstat (limited to 'cherrypy/lib/caching.py')
-rw-r--r--cherrypy/lib/caching.py4
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))