#NEWLINE# def init( self ) : #NEWLINE# #INDENT# super ( TEST_IN , self ) . init ( ) #NEWLINE# choices = self . args #NEWLINE# if callable ( choices ) : #NEWLINE# #INDENT# choices = choices ( ) #NEWLINE# #UNINDENT# if isinstance ( choices , dict ) : #NEWLINE# #INDENT# self . keys = choices #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( choices , ( list , tuple ) ) : #NEWLINE# #INDENT# keys = set ( [ ] ) #NEWLINE# for v in choices : #NEWLINE# #INDENT# if isinstance ( v , ( list , tuple ) ) : #NEWLINE# #INDENT# keys . add ( v [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# keys . add ( v ) #NEWLINE# #UNINDENT# #UNINDENT# self . keys = keys