From: Leandro Lucarella Date: Sat, 14 Jul 2012 18:09:44 +0000 (+0200) Subject: Remove unused class Subtitle X-Git-Url: https://git.llucax.com/software/subdivxget.git/commitdiff_plain/a53f6ed5e6cbd150f0fd27dbaae850f57eff33fe Remove unused class Subtitle --- diff --git a/subdivxget b/subdivxget index 5c5cc7a..aaa3d44 100755 --- a/subdivxget +++ b/subdivxget @@ -29,8 +29,6 @@ class SubDivXQuery: def down_uri(self): return 'http://' + self.host + self.down_page -class Subtitle: - pass class SubDivXHTMLParser(HTMLParser.HTMLParser): @@ -48,7 +46,6 @@ class SubDivXHTMLParser(HTMLParser.HTMLParser): def handle_starttag(self, tag, attrs): attrs = dict(attrs) if tag == 'div' and attrs.get('id') == 'menu_detalle_buscador': - #self.cur = Subtitle() self.cur = dict() self.subs.append(self.cur) self.parsing = True @@ -79,8 +76,6 @@ class SubDivXHTMLParser(HTMLParser.HTMLParser): if self.attr is not None and data: self.cur[self.attr] = data self.attr = None - #self.cur[self.attr] = self.cur.get(self.attr, '') + data.strip() - #setattr(self.cur, self.attr, data.strip()) elif data in ('Downloads:', 'Cds:', 'Comentarios:', 'Formato:'): self.attr = data[:-1].lower()