[Python-checkins] python/dist/src/Lib HTMLParser.py,1.14,1.15

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Thu Sep 9 00:58:38 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5108

Modified Files:
	HTMLParser.py 
Log Message:
remove unnecessary override of base class method


Index: HTMLParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/HTMLParser.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- HTMLParser.py	5 Jun 2004 15:31:45 -0000	1.14
+++ HTMLParser.py	8 Sep 2004 22:58:36 -0000	1.15
@@ -208,19 +208,6 @@
             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



More information about the Python-checkins mailing list