#NEWLINE# def addPacket( self , p , old ) : #NEWLINE# #INDENT# if ( self . input is None ) : #NEWLINE# #INDENT# self . input = p #NEWLINE# self . packet_pending = True #NEWLINE# if ( self . priority > old . priority ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# p . append_to ( self . input ) #NEWLINE# #UNINDENT# return old