summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-08-17 14:45:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-08-17 14:45:34 -0400
commit398975795b0b7fc8945215bef72f398e752b5b63 (patch)
tree08f5d08bef38f167554020bd452f09c021398bed
parenta95e619f156de6002be26a062fec0eead90cef25 (diff)
downloadcherrypy-git-398975795b0b7fc8945215bef72f398e752b5b63.tar.gz
value can't be text anymore
-rw-r--r--cherrypy/_cprequest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/_cprequest.py b/cherrypy/_cprequest.py
index b53364af..853967de 100644
--- a/cherrypy/_cprequest.py
+++ b/cherrypy/_cprequest.py
@@ -789,7 +789,7 @@ class ResponseBody(object):
if isinstance(value, six.text_type):
raise ValueError(self.unicode_err)
- if isinstance(value, text_or_bytes):
+ if isinstance(value, bytes):
# strings get wrapped in a list because iterating over a single
# item list is much faster than iterating over every character
# in a long string.