X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=parse_html%2Fhtmlparser.py;h=295df2bdabe6b9cacf839b3c4bea0a56a70c1d5f;hp=0932873f14a9566b74d056feed7b261f1a9ce9a0;hb=c9cfb54ef36e77aee7187e4533f063d407073ad8;hpb=a01b9869e595d0c1cc5ebeb6f5a1da66d45c3d22 diff --git a/parse_html/htmlparser.py b/parse_html/htmlparser.py index 0932873..295df2b 100644 --- a/parse_html/htmlparser.py +++ b/parse_html/htmlparser.py @@ -10,6 +10,9 @@ __author__ = "Oleg Broytman " __copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design" __license__ = "GNU GPL" +__all__ = ['parse_html'] + + from HTMLParser import HTMLParseError from m_lib.net.www.html import HTMLParser as _HTMLParser @@ -29,7 +32,6 @@ class HTMLParser(_HTMLParser): def end_head(self): raise HTMLHeadDone() - def do_meta(self, attrs): http_equiv = "" content = "" @@ -54,7 +56,6 @@ class HTMLParser(_HTMLParser): if http_equiv == "refresh": self.refresh = content - def start_title(self, attrs): self.accumulator = '' @@ -62,7 +63,6 @@ class HTMLParser(_HTMLParser): if not self.title: # use only the first title self.title = self.accumulator - def do_link(self, attrs): has_icon = False href = None