def set_jobs(self, jobs):
        """Set --jobs."""
        if jobs == "sys":
            self.jobs = None
        else:
            try:
                jobs = int(jobs)
            except ValueError:
                jobs = -1  # will raise error below
            if jobs < 0:
                raise CoconutException("--jobs must be an integer >= 0 or 'sys'")
            self.jobs = jobs
def set_jobs ( self , jobs ) : if jobs == "sys" : self . jobs = None else : try : jobs = int ( jobs ) except ValueError : jobs = - 1 if jobs < 0 : raise CoconutException ( "--jobs must be an integer >= 0 or 'sys'" ) self . jobs = jobs
Set --jobs.