From: Fred Drake Date: Thu, 4 Apr 2002 19:12:50 +0000 (+0000) Subject: Not sure why the regression test missed this, but the PyXML tests caught it. X-Git-Tag: v2.2.1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbd7a5eb57811861685b35f99ed24cb9d656c9dc;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 2732ab06f295..d641c191f6f9 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()