From: Fred Drake Date: Thu, 4 Apr 2002 19:12:31 +0000 (+0000) Subject: Not sure why the regression test missed this, but the PyXML tests caught it. X-Git-Tag: v2.3c1~6135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da204daeaa39019f2134166308c5b9cdfa84b84a;p=python Not sure why the regression test missed this, but the PyXML tests caught it. We should get attributes from the right object. --- diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index 2732ab06f2..d641c191f6 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()