Commit 414c8f3f authored by Fred Drake's avatar Fred Drake

Not sure why the regression test missed this, but the PyXML tests caught it.

We should get attributes from the right object.
parent 02249165
...@@ -49,7 +49,7 @@ class ExpatLocator(xmlreader.Locator): ...@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment