def set_tags(<EOL>self,<EOL>tags="<STR_LIT>"):
self.refresh<EOL>tagList = []<EOL>regex = re.compile(r'<STR_LIT>', re.S)<EOL>matchList = regex.findall(tags)<EOL>for m in matchList:<EOL><INDENT>tagList.append(m.strip().replace("<STR_LIT:@>", "<STR_LIT>"))<EOL><DEDENT>self.refresh<EOL>oldContent = self.to_string(indentLevel=<NUM_LIT:1>)<EOL>self.tags = tagList<EOL>newContent = self.to_string(indentLevel=<NUM_LIT:1>)<EOL>self.parent._update_document_tree(<EOL>oldContent=oldContent,<EOL>newContent=newContent<EOL>)<EOL>self.refresh<EOL>return None<EOL>
*Set the tags for this taskpaper object*

        **Key Arguments:**
            - ``tags`` -- a tag string to set

        **Usage:**

            .. code-block:: python 

                aTask.set_tags("@due @mac")