-import string, sys
+import sys
py2 = sys.version[0] == '2'
else:
from xml.parsers import pyexpat
parsermodule = pyexpat
- haveXML = true
+ haveXML = True
except ImportError:
- haveXML = false
+ haveXML = False
#----------------------------------------------------------------------
self.nodeStack = self.nodeStack[:-1]
def CharacterData(self, data ):
- if string.strip(data):
+ if data.strip():
if py2:
data = data.encode()
self.AppendItem(self.nodeStack[-1], data)
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])