]> granicus.if.org Git - python/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:12:31 +0000 (19:12 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 4 Apr 2002 19:12:31 +0000 (19:12 +0000)
We should get attributes from the right object.

Lib/xml/sax/expatreader.py

index 2732ab06f29532846d65230b98708101714ff473..d641c191f6f9e50ac590ebcbd9217aeb7656a88d 100644 (file)
@@ -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()