#NEWLINE# def _validate( localpart ) : #NEWLINE# #INDENT# stream = TokenStream ( localpart ) #NEWLINE# while True : #NEWLINE# #INDENT# mpart = stream . get_token ( ALPHANUM ) #NEWLINE# if ( mpart is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# mpart = stream . get_token ( DOT ) #NEWLINE# if ( mpart is None ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# tgs = _tags ( stream ) #NEWLINE# if ( not stream . end_of_stream ( ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True