]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Not sure why the regression test missed this, but the PyXML tests caught it.
authorFred Drake <fdrake@acm.org>
Thu, 4 Apr 2002 19:13:18 +0000 (19:13 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 4 Apr 2002 19:13:18 +0000 (19:13 +0000)
We should get attributes from the right object.

Lib/xml/sax/expatreader.py

index e6a5a5a4632436441fa863aad28c8eb6625c8d7f..f0316df0d0bf6ecbcce75f9698f7680755f6965a 100644 (file)
@@ -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()