#NEWLINE# def _cleanup_packet_capture_procs( self ) : #NEWLINE# #INDENT# 'Delete finished procs from the map' #NEWLINE# for ( ip , p ) in self . ip_to_pcap_proc_map . items ( ) : #NEWLINE# #INDENT# if ( ( not p ) or ( p . poll ( ) is not None ) ) : #NEWLINE# #INDENT# del p . ip_to_pcap_proc_map [ ip ]