[Python-checkins] r46996 - python/trunk/Lib/sgmllib.py

fred.drake python-checkins at python.org
Sat Jun 17 03:07:55 CEST 2006


Author: fred.drake
Date: Sat Jun 17 03:07:54 2006
New Revision: 46996

Modified:
   python/trunk/Lib/sgmllib.py
Log:
fix change that broke the htmllib tests

Modified: python/trunk/Lib/sgmllib.py
==============================================================================
--- python/trunk/Lib/sgmllib.py	(original)
+++ python/trunk/Lib/sgmllib.py	Sat Jun 17 03:07:54 2006
@@ -424,11 +424,11 @@
 
     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):


More information about the Python-checkins mailing list