Changeset 1483
- Timestamp:
- 12/09/06 12:56:59
- Files:
-
- branches/cherrypy-2.x/cherrypy/_cpwsgi.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/_cpwsgi.py
r1439 r1483 93 93 # not take any time at all if chunk is already of type "str". 94 94 # If it's unicode, it could be a big performance hit (x ~500). 95 chunk = str(chunk) 95 if not isinstance(chunk, str): 96 chunk = chunk.encode("ISO-8859-1") 96 97 yield chunk 97 98 if request: … … 119 120 # may raise its own error at that point). 120 121 for chunk in b: 121 yield str(chunk) 122 if not isinstance(chunk, str): 123 chunk = chunk.encode("ISO-8859-1") 124 yield chunk 122 125 123 126

