def list(self):
queue = self._get_queue()<EOL>if queue is None:<EOL><INDENT>raise QueueDoesntExist<EOL><DEDENT>output = self.check_output('<STR_LIT:%s>' %<EOL>shell_escape(queue / '<STR_LIT>'))<EOL>job_id, info = None, None<EOL>for line in output.splitlines():<EOL><INDENT>line = line.decode('<STR_LIT:utf-8>')<EOL>if line.startswith('<STR_LIT:U+0020>'):<EOL><INDENT>key, value = line[<NUM_LIT:4>:].split('<STR_LIT>', <NUM_LIT:1>)<EOL>info[key] = value<EOL><DEDENT>else:<EOL><INDENT>if job_id is not None:<EOL><INDENT>yield job_id, info<EOL><DEDENT>job_id = line<EOL>info = {}<EOL><DEDENT><DEDENT>if job_id is not None:<EOL><INDENT>yield job_id, info<EOL><DEDENT>
Lists the jobs on the server.