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:
Fred Drake 2002-04-04 19:12:31 +00:00
parent e13602ee49
commit da204daeaa
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class ExpatLocator(xmlreader.Locator):
parser = self._ref()
if parser is None or parser._parser is None:
return 1
return self._parser.ErrorLineNumber
return parser._parser.ErrorLineNumber
def getPublicId(self):
parser = self._ref()