(self, line, stripspace="")
return re.sub(
            r"^%s" % stripspace, self.indentstring * self.indent, line
        )
indent the given line according to the current indent level.

        stripspace is a string of space that will be truncated from the
        start of the line before indenting.
indent the given line according to the current indent level.
indent the given line according to the current indent level .
def _indent_line(self, line, stripspace=""):
        """indent the given line according to the current indent level.

        stripspace is a string of space that will be truncated from the
        start of the line before indenting."""

        return re.sub(
            r"^%s" % stripspace, self.indentstring * self.indent, line
        )
def _indent_line ( self , line , stripspace = "" ) : return re . sub ( r"^%s" % stripspace , self . indentstring * self . indent , line )