projects
/
platform
/
upstream
/
libxml2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.9.1
[platform/upstream/libxml2.git]
/
python
/
tests
/
dtdvalid.py
diff --git
a/python/tests/dtdvalid.py
b/python/tests/dtdvalid.py
index
2011f2c
..
d4049b8
100755
(executable)
--- a/
python/tests/dtdvalid.py
+++ b/
python/tests/dtdvalid.py
@@
-14,7
+14,7
@@
ctxt = libxml2.newValidCtxt()
doc = libxml2.parseDoc(instance)
ret = doc.validateDtd(ctxt, dtd)
if ret != 1:
doc = libxml2.parseDoc(instance)
ret = doc.validateDtd(ctxt, dtd)
if ret != 1:
- print
"error doing DTD validation"
+ print
("error doing DTD validation")
sys.exit(1)
doc.freeDoc()
sys.exit(1)
doc.freeDoc()
@@
-25,8
+25,8
@@
del ctxt
# Memory debug specific
libxml2.cleanupParser()
if libxml2.debugMemory(1) == 0:
# Memory debug specific
libxml2.cleanupParser()
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()