diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-08-17 14:45:34 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-08-17 14:45:34 -0400 |
commit | 398975795b0b7fc8945215bef72f398e752b5b63 (patch) | |
tree | 08f5d08bef38f167554020bd452f09c021398bed | |
parent | a95e619f156de6002be26a062fec0eead90cef25 (diff) | |
download | cherrypy-git-398975795b0b7fc8945215bef72f398e752b5b63.tar.gz |
value can't be text anymore
-rw-r--r-- | cherrypy/_cprequest.py | 2 |
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. |