Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da204da

Browse files
committed
Not sure why the regression test missed this, but the PyXML tests caught it.
We should get attributes from the right object.
1 parent e13602e commit da204da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/xml/sax/expatreader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def getLineNumber(self):
4949
parser = self._ref()
5050
if parser is None or parser._parser is None:
5151
return 1
52-
return self._parser.ErrorLineNumber
52+
return parser._parser.ErrorLineNumber
5353

5454
def getPublicId(self):
5555
parser = self._ref()

0 commit comments

Comments
 (0)