#NEWLINE# def __init__( self , device_handler ) : #NEWLINE# #INDENT# capabilities = Capabilities ( device_handler . get_capabilities ( ) ) #NEWLINE# Session . __init__ ( self , capabilities ) #NEWLINE# self . _host_keys = paramiko . HostKeys ( ) #NEWLINE# self . _transport = None #NEWLINE# self . _connected = False #NEWLINE# self . _channel = None #NEWLINE# self . _channel_id = None #NEWLINE# self . _channel_name = None #NEWLINE# if ( sys . version < '3' ) : #NEWLINE# #INDENT# self . _buffer = StringIO ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _buffer = BytesIO ( ) #NEWLINE# #UNINDENT# self . _device_handler = device_handler #NEWLINE# self . _parsing_state10 = 0 #NEWLINE# self . _parsing_pos10 = 0 #NEWLINE# self . _parsing_pos11 = 0 #NEWLINE# self . _parsing_state11 = 0 #NEWLINE# self . _expchunksize = 0 #NEWLINE# self . _curchunksize = 0 #NEWLINE# self . _inendpos = 0 #NEWLINE# self . _size_num_list = [ ] #NEWLINE# self . _message_list = [ ]