#NEWLINE# def _MakeScopeRegex( self , role , entity_type , email_address ) : #NEWLINE# #INDENT# template_regex = ( '\\{.*"entity":\\s*"%s-%s".*"role":\\s*"%s".*\\}' % ( entity_type , entity_type , role ) ) #NEWLINE# return re . compile ( template_regex , flags = re . DOTALL )