#NEWLINE# def generate_email_change_token( self , new_email , expiration = 3600 ) : #NEWLINE# #INDENT# s = Serializer ( current_app . config [ 'SECRET_KEY' ] , expiration ) #NEWLINE# return s . dumps ( { #NEWLINE# #INDENT# 'change_email' : self . id , #NEWLINE# 'new_email' : new_email , #NEWLINE# #UNINDENT# } )