def set_autoindent(self,value=None):
if value != <NUM_LIT:0> and not self.has_readline:<EOL><INDENT>if os.name == '<STR_LIT>':<EOL><INDENT>warn("<STR_LIT>")<EOL><DEDENT>self.autoindent = <NUM_LIT:0><EOL>return<EOL><DEDENT>if value is None:<EOL><INDENT>self.autoindent = not self.autoindent<EOL><DEDENT>else:<EOL><INDENT>self.autoindent = value<EOL><DEDENT>
Set the autoindent flag, checking for readline support.

        If called with no arguments, it acts as a toggle.