#NEWLINE# def set_canned_acl_helper( self , acl_str , key_name , headers , query_args ) : #NEWLINE# #INDENT# 'provides common functionality for set_canned_acl() and \n           set_def_canned_acl()' #NEWLINE# assert ( acl_str in CannedACLStrings ) #NEWLINE# if headers : #NEWLINE# #INDENT# headers [ self . connection . provider . acl_header ] = acl_str #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# self . connection . provider . acl_header : acl_str , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# response = self . connection . make_request ( 'PUT' , self . name , key_name , headers = headers , query_args = query_args ) #NEWLINE# body = response . read ( ) #NEWLINE# if ( response . status != 200 ) : #NEWLINE# #INDENT# raise self . connection . provider . storage_response_error ( response . status , response . reason , body )