#NEWLINE# def __init__( self , name , manager ) : #NEWLINE# #INDENT# self . name = name #NEWLINE# self . manager = manager #NEWLINE# parts = self . name . split ( ':' , 1 ) #NEWLINE# self . pid = None #NEWLINE# if ( len ( self ) == 1 ) : #NEWLINE# #INDENT# self . source = parts [ 0 ] . upper ( ) #NEWLINE# self . target = '.' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( self . source , self . target ) = ( parts [ 0 ] . upper ( ) , parts [ 1 ] . lower ( ) ) #NEWLINE# if self . target . isdigit ( ) : #NEWLINE# #INDENT# self . pid = int ( self . target ) #NEWLINE# #UNINDENT# #UNINDENT# self . channels = set ( ) #NEWLINE# self . active = False