#NEWLINE# def run_shell( self , shell = None ) : #NEWLINE# #INDENT# available_shells = ( [ shell ] if shell else self . shells ) #NEWLINE# for shell in available_shells : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return getattr ( self , shell ) ( ) #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# raise ImportError