Try to deal with _xmlplus module if present instead of xml

svn: r173
This commit is contained in:
Don Allingham
2001-06-21 23:14:01 +00:00
parent 91062cd589
commit b486916155
5 changed files with 51 additions and 37 deletions

View File

@@ -23,24 +23,8 @@ from TextDoc import *
import string
import os
import sys
import xml.sax
import xml.sax.saxutils
import utils
#-------------------------------------------------------------------------
#
# Try to abstract SAX1 from SAX2
#
#-------------------------------------------------------------------------
if sys.version[0] != '1':
sax = 2
else:
try:
import xml.sax.saxexts
sax = 1
except:
sax = 2
#------------------------------------------------------------------------
#
#