Changeset 1090
- Timestamp:
- 05/02/06 18:34:15
- Files:
-
- trunk/cherrypy/_cpwsgi.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpwsgi.py
r1082 r1090 95 95 # not take any time at all if chunk is already of type "str". 96 96 # If it's unicode, it could be a big performance hit (x ~500). 97 chunk = str(chunk) 97 if not isinstance(chunk, str): 98 chunk = chunk.encode("ISO-8859-1") 98 99 yield chunk 99 100 if request: … … 121 122 # may raise its own error at that point). 122 123 for chunk in b: 123 yield str(chunk) 124 if not isinstance(chunk, str): 125 chunk = chunk.encode("ISO-8859-1") 126 yield chunk 124 127 125 128

