Jump to content

User:WildBot/article queue.py

From Wikipedia, the free encyclopedia
#!/usr/bin/python
# -*- coding: utf-8 -*-

"""
There was an expectation this would do more
"""

import Queue

class ArticleQueue:
    def __init__(self, shutdown_event=None):
        self.queue = Queue.Queue()
        self.shutdown = shutdown_event

    def add_page(self, page):
        self.queue.put(page)
        # There's something on the queue
#        self.event.set()

    def remove_page(self):
        return self.queue.get()