#NEWLINE# def unsubscribe_hmac( self ) : #NEWLINE# #INDENT# h = hmac . HMAC ( settings . SECRET_KEY ) #NEWLINE# h . update ( ( 'unsubscribe:' + self . email ) ) #NEWLINE# return base64 . urlsafe_b64encode ( h . digest ( ) )