diff options
author | Fred Drake <fdrake@acm.org> | 2006-06-17 01:07:54 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2006-06-17 01:07:54 (GMT) |
commit | 541660553d646db451655c0f79640f0b8f64baad (patch) | |
tree | d0bfa1d7ddd4cb677e816082256a3a1e36451812 /Lib/sgmllib.py | |
parent | fab461a4b5a2304828d578bbdd24225dd9c252e9 (diff) | |
download | cpython-541660553d646db451655c0f79640f0b8f64baad.zip cpython-541660553d646db451655c0f79640f0b8f64baad.tar.gz cpython-541660553d646db451655c0f79640f0b8f64baad.tar.bz2 |
fix change that broke the htmllib tests
Diffstat (limited to 'Lib/sgmllib.py')
-rw-r--r-- | Lib/sgmllib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 5c59a5c..194396b 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -424,11 +424,11 @@ class SGMLParser(markupbase.ParserBase): def handle_entityref(self, name): """Handle entity references, no need to override.""" - replacement = convert_entityref(name) + replacement = self.convert_entityref(name) if replacement is None: self.unknown_entityref(name) else: - self.handle_data(convert_entityref(name)) + self.handle_data(self.convert_entityref(name)) # Example -- handle data, should be overridden def handle_data(self, data): |