mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue