Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2235

Show
Ignore:
Timestamp:
04/01/09 14:51:06
Author:
lawouach
Message:

Fixed #732

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/encoding.py

    r2191 r2235  
    3939            if isinstance(value, list): 
    4040                # 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] 
    4242            elif isinstance(value, str): 
    4343                # value is a regular string: decode it 

Hosted by WebFaction

Log in as guest/cpguest to create tickets