Changeset 2235
- Timestamp:
- 04/01/09 14:51:06
- Files:
-
- trunk/cherrypy/lib/encoding.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/encoding.py
r2191 r2235 39 39 if isinstance(value, list): 40 40 # value is a list: decode each element 41 value = [v.decode(encoding) for v in value]41 value = [v.decode(encoding) if isinstance(v, str) else v for v in value] 42 42 elif isinstance(value, str): 43 43 # value is a regular string: decode it

