#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# args = [ ] #NEWLINE# if ( self . allowed is not None ) : #NEWLINE# #INDENT# args . append ( ( 'allowed=' + repr ( self . allowed ) ) ) #NEWLINE# #UNINDENT# if ( self . default is not REQUIRED ) : #NEWLINE# #INDENT# args . append ( repr ( self . default ) ) #NEWLINE# #UNINDENT# return 'OneOf({0})' . format ( ', ' . join ( args ) )