mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-03 00:42:24 +03:00
Finish and clean up Python 3 support
- Handle Python 3 types similar to libxml2 - Copy new versions of libxml_xmlXPathDestructNsNode and libxml_xmlXPathObjectPtrConvert from libxml2 - Fix compiler warnings - Fix whitespace - Remove unneeded imports from __future__ - Remove test in extelem.py (StringIO can't be converted to FILE under Python 3) - string.lower() works in both Python 2 and 3 Closes #25.
This commit is contained in:
@ -4,8 +4,6 @@
|
||||
# bindings, not complete yet and shows up the things missing
|
||||
# from the existing python interfaces
|
||||
#
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import time
|
||||
import os
|
||||
@ -150,7 +148,7 @@ def main(args = None):
|
||||
args = sys.argv[1:]
|
||||
if len(args) <= 0:
|
||||
usage(sys.argv[0])
|
||||
|
||||
|
||||
|
||||
i = 0
|
||||
while i < len(args):
|
||||
@ -211,12 +209,12 @@ def main(args = None):
|
||||
print("Unknown option %s" % (args[i]))
|
||||
usage()
|
||||
return(3)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
i = i + 1
|
||||
|
||||
|
||||
libxml2.lineNumbersDefault(1)
|
||||
libxml2.substituteEntitiesDefault(1)
|
||||
# TODO: xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS
|
||||
|
Reference in New Issue
Block a user