#NEWLINE# def _decodeAmazonHeaders( self , headers ) : #NEWLINE# #INDENT# '\n        Remove custom header prefix from header dictionary keys.\n        ' #NEWLINE# for key in headers . keys ( ) : #NEWLINE# #INDENT# if ( ( 'x-amz-meta-%s' % key . lower ( ) ) in self . reserved_headers ) : #NEWLINE# #INDENT# message = ( 'Header %s is reserved for use by Amazon S3.' % key ) #NEWLINE# LOGGER . critical ( message ) #NEWLINE# raise Exception ( message ) #NEWLINE# #UNINDENT# #UNINDENT# keys = headers . keys ( ) #NEWLINE# values = headers . values ( ) #NEWLINE# meta = 'x-amz-meta-' #NEWLINE# return dict ( zip ( [ x . replace ( meta , '' ) for x in keys ] , key ) )