]> granicus.if.org Git - python/commitdiff
remove unnecessary override of base class method
authorFred Drake <fdrake@acm.org>
Wed, 8 Sep 2004 22:58:36 +0000 (22:58 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 8 Sep 2004 22:58:36 +0000 (22:58 +0000)
Lib/HTMLParser.py

index 553e8427ccc2b9c4803a1217c27a5b6ee3a15779..8380466e337500cc5714abd588170da81d4f23f4 100644 (file)
@@ -208,19 +208,6 @@ class HTMLParser(markupbase.ParserBase):
             i = self.updatepos(i, n)
         self.rawdata = rawdata[i:]
 
-    # Internal -- parse comment, return end or -1 if not terminated
-    def parse_comment(self, i, report=1):
-        rawdata = self.rawdata
-        assert rawdata[i:i+4] == '<!--', 'unexpected call to parse_comment()'
-        match = commentclose.search(rawdata, i+4)
-        if not match:
-            return -1
-        if report:
-            j = match.start()
-            self.handle_comment(rawdata[i+4: j])
-        j = match.end()
-        return j
-
     # Internal -- parse processing instr, return end or -1 if not terminated
     def parse_pi(self, i):
         rawdata = self.rawdata