#NEWLINE# def connectShell( connection , protocol ) : #NEWLINE# #INDENT# 'Connect a Protocol to a ssh shell session\n    ' #NEWLINE# deferred = connectSession ( connection , protocol ) #NEWLINE# @ deferred . addCallback #NEWLINE# def requestSubsystem( session ) : #NEWLINE# #INDENT# return session . requestShell ( ) #NEWLINE# #UNINDENT# return deferred