def _init(self, maxsize): Queue._init(self, maxsize) nodes = Access(self.events).get_entry(maxsize) for node in nodes: try: self.queue.append(Entry(node['raw_url'], self.reddit)) self.events.on_adding_to_queue(node['raw_url']) except EntryError: # TODO Remove old entry from DB pass
def _init(self, maxsize): Queue._init(self, maxsize) self.all_items = set()
def _init(self, maxsize=0): """ SetQueue constructor constructing the base Queue object and an internal set object """ Queue._init(self, maxsize) self.all_items = set()
def _init(self, maxsize): Queue._init(self, maxsize) self.all_items = set() logger.debug('__INIT__ SetQueue()')