'Prints out a textual listing of all jobs currently scheduled on this
scheduler.
:param out: a file-like object to print to (defaults to **sys.stdout**
if nothing is given)'

def print_jobs(self, out=None):

    out = (out or sys.stdout)
    job_strs = []
    self._jobstores_lock.acquire()
    try:
        for (alias, jobstore) in iteritems(self._jobstores):
            job_strs.append(('Jobstore    %s:' % alias))
            if jobstore.jobs:
                for job in jobstore.jobs:
                    job_strs.append(('                %s' % job))
            else:
                job_strs.append('                No    scheduled    jobs')
    finally:
        self._jobstores_lock.release()
    out.write((os.linesep.join(job_strs) + os.linesep))
