#NEWLINE# def _recv( self , * expected_commands ) : #NEWLINE# #INDENT# line = SocketError . wrap ( self . _readline ) #NEWLINE# command = self . _get_command ( line ) #NEWLINE# if ( command not in expected_commands ) : #NEWLINE# #INDENT# raise UnexpectedResponse ( line ) #NEWLINE# #UNINDENT# result = command . match ( line . encode ( 'utf-8' ) ) #NEWLINE# if ( result is None ) : #NEWLINE# #INDENT# raise UnknownResponse ( command . pattern , line ) #NEWLINE# #UNINDENT# return ( command , result )