]> granicus.if.org Git - python/commitdiff
Replace unnecessary function call.
authorGeorg Brandl <georg@python.org>
Mon, 6 Aug 2007 07:39:09 +0000 (07:39 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 6 Aug 2007 07:39:09 +0000 (07:39 +0000)
Lib/sgmllib.py

index 3ab57c23071707b0a23c29e58f35afaa09306f37..b68eb7a62abd769df3f7395fcdfcafa198ca2a9c 100644 (file)
@@ -428,7 +428,7 @@ class SGMLParser(markupbase.ParserBase):
         if replacement is None:
             self.unknown_entityref(name)
         else:
-            self.handle_data(self.convert_entityref(name))
+            self.handle_data(replacement)
 
     # Example -- handle data, should be overridden
     def handle_data(self, data):