parameters: (local_path, s3_key)
docstring: Utility method to upload a single asset to S3.
docstring_summary: Utility method to upload a single asset to S3.
docstring_tokens: Utility method to upload a single asset to S3 .
function: def _assets_upload(local_path, s3_key):
      """
      Utility method to upload a single asset to S3.
      """
      print '--> Uploading!'
  
      with open(local_path, 'rb') as f:
          local_md5 = s3_key.compute_md5(f)[0]
  
      s3_key.set_metadata('md5', local_md5)
      s3_key.set_contents_from_filename(local_path)
function_tokens: def _assets_upload ( local_path , s3_key ) : print '--> Uploading!' with open ( local_path , 'rb' ) as f : local_md5 = s3_key . compute_md5 ( f ) [ 0 ] s3_key . set_metadata ( 'md5' , local_md5 ) s3_key . set_contents_from_filename ( local_path )