From 9e3c42a15b03b3174d73b44e77befcf8864302ec Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 4 Apr 2002 19:13:18 +0000 Subject: [PATCH] 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 e6a5a5a46324..f0316df0d0bf 100644 --- a/Lib/xml/sax/expatreader.py +++ b/Lib/xml/sax/expatreader.py @@ -39,7 +39,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() -- 2.47.3