Remove useless __all__ in modules

They bring nothing of value (we never use import * anyway) and introduce
a maintenance burden.

The __all__ that I left might not be very useful either but at least
they are not a pain to maintain; they are also used by pyflakes in some
cases.
This commit is contained in:
Laurent Bachelier 2014-09-09 19:00:02 +02:00
commit 3da02fde24
206 changed files with 0 additions and 575 deletions

View file

@ -39,8 +39,6 @@ from .video import GDCVaultVideo
# TODO: check title on 1439
__all__ = ['IndexPage', 'SearchPage', 'VideoPage']
class IndexPage(BasePage):
def iter_videos(self):
@ -73,7 +71,6 @@ class IndexPage(BasePage):
else:
video.thumbnail = NotAvailable
#m = re.match('id-(\d+)', a.attrib.get('class', ''))
#if not m:
# continue
@ -115,7 +112,6 @@ class VideoPage(BasePage):
except UnicodeDecodeError as e:
title = None
if title is None:
obj = self.parser.select(self.document.getroot(), 'meta[name=title]')
if len(obj) > 0:
@ -128,7 +124,6 @@ class VideoPage(BasePage):
# XXX: this doesn't even works!?
title = obj[0].attrib['content'].decode('iso-5589-15')
if title is not None:
title = title.strip()
m = re.match('GDC Vault\s+-\s+(.*)', title)
@ -169,7 +164,6 @@ class VideoPage(BasePage):
# if headers.get('Content-Type', '') == 'text/html' and headers.get('Content-Length', '') == '2':
# print 'BUG'
#print req.code
except HTTPError as e:
#print e.getcode()

View file

@ -25,8 +25,6 @@ from weboob.capabilities.base import NotAvailable
import re
from dateutil.parser import parse as parse_dt
__all__ = ['GDCVaultVideo']
class GDCVaultVideo(BaseVideo):
def __init__(self, *args, **kwargs):