def close(self):
     self.io_flush()
     if self._o != None:
         libxml2mod.xmlOutputBufferClose(self._o)
     self._o = None
Example #2
0
 def close(self):
     self.io_flush()
     if self._o != None:
         libxml2mod.xmlOutputBufferClose(self._o)
     self._o = None
    def __del__(self):
#        print "__del__"
        self.io_close()
        if self._o != None:
            libxml2mod.xmlOutputBufferClose(self._o)
        self._o = None
Example #4
0
    def __del__(self):
#        print "__del__"
        self.io_close()
        if self._o != None:
            libxml2mod.xmlOutputBufferClose(self._o)
        self._o = None