def __repr__(self):
        return "<Requirement(package={package}, version='{version}')>".format(
            package=self.package, version=self.version)
def emit(self, record):
        msg = self.format(record)
        self._queue.put_nowait(msg)