From: Fred Drake Date: Thu, 4 Apr 2002 19:13:18 +0000 (+0000) Subject: Not sure why the regression test missed this, but the PyXML tests caught it. X-Git-Tag: v2.1.3~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e3c42a15b03b3174d73b44e77befcf8864302ec;p=thirdparty%2FPython%2Fcpython.git 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 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()