@contextmanager<EOL><INDENT>def indent(self, indent):<DEDENT>
curr_docparts = self._docparts<EOL>self._docparts = []<EOL>self.indentation += indent<EOL>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>self.indentation -= indent<EOL>indented_docparts = self._docparts<EOL>self._docparts = curr_docparts<EOL>self._docparts.append(nest(indent, concat(indented_docparts)))<EOL><DEDENT>
with statement support for indenting/dedenting.