Not sure why the regression test missed this, but the PyXML tests caught it.
We should get attributes from the right object.
This commit is contained in:
parent
e13602ee49
commit
da204daeaa
|
@ -49,7 +49,7 @@ class ExpatLocator(xmlreader.Locator):
|
||||||
parser = self._ref()
|
parser = self._ref()
|
||||||
if parser is None or parser._parser is None:
|
if parser is None or parser._parser is None:
|
||||||
return 1
|
return 1
|
||||||
return self._parser.ErrorLineNumber
|
return parser._parser.ErrorLineNumber
|
||||||
|
|
||||||
def getPublicId(self):
|
def getPublicId(self):
|
||||||
parser = self._ref()
|
parser = self._ref()
|
||||||
|
|
Loading…
Reference in New Issue