mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Provided a working fix for the remaining errors in the test suite
This commit is contained in:
parent
839cc5aaeb
commit
23af2ea875
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user