def rule2job(self, targetrule):
    'Generate a new job from a given rule.'
    if targetrule.has_wildcards():
        raise WorkflowError('Target rules may not contain wildcards. Please specify concrete files or a rule without wildcards.')
    return self.new_job(targetrule)
Generate a new job from a given rule.
def rule2job(self, targetrule):
    
    if targetrule.has_wildcards():
        raise WorkflowError('Target rules may not contain wildcards. Please specify concrete files or a rule without wildcards.')
    return self.new_job(targetrule)