#NEWLINE# def iam_names( b ) : #NEWLINE# #INDENT# iam_name_re = compile ( '^[a-zA-Z0-9_\\.\\+\\=\\@\\-\\,]+$' ) #NEWLINE# if iam_name_re . match ( b ) : #NEWLINE# #INDENT# return b #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( '%s is not a valid iam name' % b ) )