def clear(self): """ Clear the queue of all its contents""" if self.retryQueueEnabled is not None: self.rQueue.clear() PriorityQueue.clear(self) self.nzbs = [] self.parent.onDiskSegments.clear()