#NEWLINE# def __init__( self , capabilities ) : #NEWLINE# #INDENT# Thread . __init__ ( self ) #NEWLINE# self . setDaemon ( True ) #NEWLINE# self . _listeners = set ( ) #NEWLINE# self . _lock = Lock ( ) #NEWLINE# self . setName ( 'session' ) #NEWLINE# self . _q = Queue ( ) #NEWLINE# self . _client_capabilities = capabilities #NEWLINE# self . _server_capabilities = None #NEWLINE# self . _id = None #NEWLINE# self . _connected = False #NEWLINE# logger . debug ( ( '%r created: client_capabilities=%r' % ( self , capabilities . _client_capabilities ) ) ) #NEWLINE# self . _device_handler = None