Diff for /embedaddon/libxml2/python/tests/reader8.py between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:38:00 version 1.1.1.2, 2014/06/15 19:53:34
Line 3 Line 3
 # this tests the entities substitutions with the XmlTextReader interface  # this tests the entities substitutions with the XmlTextReader interface
 #  #
 import sys  import sys
 import StringIO  
 import libxml2  import libxml2
   
 # Memory debug specific  # Memory debug specific
Line 23  ret = reader.Read() Line 22  ret = reader.Read()
 ret = reader.Close()  ret = reader.Close()
   
 if ret != 0:  if ret != 0:
    print "Error closing the document test1"    print("Error closing the document test1")
     sys.exit(1)      sys.exit(1)
   
 del reader  del reader
Line 31  del reader Line 30  del reader
 # Memory debug specific  # Memory debug specific
 libxml2.cleanupParser()  libxml2.cleanupParser()
 if libxml2.debugMemory(1) == 0:  if libxml2.debugMemory(1) == 0:
    print "OK"    print("OK")
 else:  else:
    print "Memory leak %d bytes" % (libxml2.debugMemory(1))    print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
     libxml2.dumpMemory()      libxml2.dumpMemory()

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>