summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-09-08 22:58:36 (GMT)
committerFred Drake <fdrake@acm.org>2004-09-08 22:58:36 (GMT)
commit49b4d1917235d637581b1531ae205ee38899b8af (patch)
tree97cbe0d4eaa93a17a6f9293df3ed59836c4338c1
parent75d9a62fe031195742b6d9f0647458af0fbd96f0 (diff)
downloadcpython-49b4d1917235d637581b1531ae205ee38899b8af.zip
cpython-49b4d1917235d637581b1531ae205ee38899b8af.tar.gz
cpython-49b4d1917235d637581b1531ae205ee38899b8af.tar.bz2
remove unnecessary override of base class method
-rw-r--r--Lib/HTMLParser.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/HTMLParser.py b/Lib/HTMLParser.py
index 553e842..8380466 100644
--- a/Lib/HTMLParser.py
+++ b/Lib/HTMLParser.py
@@ -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