def handle_copy_source_param(params, **kwargs):
 source = params.get('CopySource')
 if (source is None):
  return
 if isinstance(source, six.string_types):
  params['CopySource'] = _quote_source_header(source)
 elif isinstance(source, dict):
  params['CopySource'] = _quote_source_header_from_dict(source)

def handle_copy_source_param ( params , ** kwargs ) : source = params . get ( 'CopySource' ) if ( source is None ) : return if isinstance ( source , six . string_types ) : params [ 'CopySource' ] = _quote_source_header ( source ) elif isinstance ( source , dict ) : params [ 'CopySource' ] = _quote_source_header_from_dict ( source )
convert copysource param for copyobject/uploadpartcopy .