#NEWLINE# def sign_policy( policy64 ) : #NEWLINE# #INDENT# signature = base64 . b64encode ( hmac . new ( CONFIG [ 'aws_secret' ] , policy64 , hashlib . sha1 ) . digest ( ) ) #NEWLINE# return signature