def get_version():
    version = {}
    with open("bqueryd/version.py") as fp:
        exec (fp.read(), version)
    return version
def emit(self, record):
        msg = self.format(record)
        self._queue.put_nowait(msg)