#NEWLINE# def __init__( self , socket ) : #NEWLINE# #INDENT# if ( socket is None ) : #NEWLINE# #INDENT# raise ValueError ( 'socket must not be None' ) #NEWLINE# #UNINDENT# self . _socket = socket #NEWLINE# self . write_lock = locks . Lock ( )