#NEWLINE# def _user_joined_room( self , user , room_id ) : #NEWLINE# #INDENT# user = str ( user ) #NEWLINE# new_user_stream = self . user_to_user_stream . get ( user ) #NEWLINE# if ( new_user_stream is not None ) : #NEWLINE# #INDENT# room_streams = self . room_to_user_streams . setdefault ( room_id , set ( ) ) #NEWLINE# room_streams . add ( new_user_stream ) #NEWLINE# new_user_stream . rooms . add ( room_id )