#NEWLINE# def create_merge_callback( self , pkt ) : #NEWLINE# #INDENT# '\n        Returns a function that will serve as a callback for Chunk. It will\n        add the passed sequence number and the packet to self.arrival_data.\n        ' #NEWLINE# def callback( seq_num ) : #NEWLINE# #INDENT# self . arrival_data . insert ( ( seq_num , pkt ) ) #NEWLINE# #UNINDENT# return callback