#NEWLINE# def register_connection( id , conn ) : #NEWLINE# #INDENT# if ( id in connections ) : #NEWLINE# #INDENT# connections [ id ] . close ( ) #NEWLINE# #UNINDENT# conn . client_id = id #NEWLINE# connections [ conn . client_id ] = conn