diff options
author | Fred Drake <fdrake@acm.org> | 2002-04-04 19:12:31 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-04-04 19:12:31 (GMT) |
commit | da204daeaa39019f2134166308c5b9cdfa84b84a (patch) | |
tree | d3997c3faad68f2b9e2a50faff82c175b17e7121 /Lib/xml | |
parent | e13602ee49668054a01b25eb456a974edebba35a (diff) | |
download | cpython-da204daeaa39019f2134166308c5b9cdfa84b84a.zip cpython-da204daeaa39019f2134166308c5b9cdfa84b84a.tar.gz cpython-da204daeaa39019f2134166308c5b9cdfa84b84a.tar.bz2 |
Not sure why the regression test missed this, but the PyXML tests caught it.
We should get attributes from the right object.
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/sax/expatreader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index 2732ab0..d641c19 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() |