summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/xml/sax/expatreader.py2
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()