(self)
Close this document
Close this document
Close this document
def close(self):
        """Close this document"""
        assert not self.wnds

        self.closed = True
        del self.wnds

        self.mode.close()
        self.buf.close()

        self.marks = self.buf = self.mode = None
        self.all.remove(self)
def close ( self ) : assert not self . wnds self . closed = True del self . wnds self . mode . close ( ) self . buf . close ( ) self . marks = self . buf = self . mode = None self . all . remove ( self )