Provided a working fix for the remaining errors in the test suite

This commit is contained in:
Daniel Neuhäuser 2010-07-11 01:05:27 +02:00
parent 839cc5aaeb
commit 23af2ea875

View File

@ -1425,6 +1425,10 @@ class XMLParser(object):
err.position = value.lineno, value.offset err.position = value.lineno, value.offset
raise err raise err
if sys.version_info >= (3, 0):
def _fixtext(self, text):
return text
else:
def _fixtext(self, text): def _fixtext(self, text):
# convert text string to ascii, if possible # convert text string to ascii, if possible
try: try: