From da204daeaa39019f2134166308c5b9cdfa84b84a Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 4 Apr 2002 19:12:31 +0000 Subject: Not sure why the regression test missed this, but the PyXML tests caught it. We should get attributes from the right object. --- Lib/xml/sax/expatreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index 2732ab0..d641c19 100644 --- a/Lib/xml/sax/expatreader.py +++ b/Lib/xml/sax/expatreader.py @@ -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() -- cgit v0.12