<s> """<STR_LIT>""" <EOL> from . compat import basestring , numeric_types <EOL> def _transparent_params ( _params ) : <EOL> params = { } <EOL> files = { } <EOL> for k , v in _params . items ( ) : <EOL> if hasattr ( v , '<STR_LIT>' ) and callable ( v . read ) : <EOL> files [ k ] = v <EOL> elif isinstance ( v , bool ) : <EOL> if v : <EOL> params [ k ] = '<STR_LIT:true>' <EOL> else : <EOL> params [ k ] = '<STR_LIT:false>' <EOL> elif isinstance ( v , basestring ) or isinstance ( v , numeric_types ) : <EOL> params [ k ] = v <EOL> elif isinstance ( v , list ) : <EOL> try : <EOL> params [ k ] = '<STR_LIT:U+002C>' . join ( v ) <EOL> except TypeError : <EOL> params [ k ] = '<STR_LIT:U+002C>' . join ( map ( str , v ) ) <EOL> else : <EOL> continue <EOL> return params , files </s>
