#NEWLINE# def _update_packets_by_id( self ) : #NEWLINE# #INDENT# d = collections . defaultdict ( list ) #NEWLINE# for pkt in self : #NEWLINE# #INDENT# d [ pkt [ 0 ] ] . append ( pkt ) #NEWLINE# #UNINDENT# self . by_pid = d