#NEWLINE# def imports( self ) : #NEWLINE# #INDENT# imports = [ ] #NEWLINE# for i in self . settings ( ) . get ( 'import' , [ ] ) : #NEWLINE# #INDENT# if ( isinstance ( i , dict ) and ( len ( i ) == 1 ) ) : #NEWLINE# #INDENT# for d in iter ( i ) : #NEWLINE# #INDENT# print ( i ) #NEWLINE# if len ( i [ d ] ) : #NEWLINE# #INDENT# imports . append ( ( ( ( 'from ' + d ) + ' import ' ) + ',' . join ( i [ d ] ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# imports . append ( ( 'import ' + d ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# imports . append ( ( 'import ' + i ) ) #NEWLINE# #UNINDENT# #UNINDENT# return imports