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

@ -23,9 +23,6 @@ from weboob.capabilities.base import NotAvailable, NotLoaded
from weboob.tools.browser import BasePage from weboob.tools.browser import BasePage
__all__ = ['RecipePage', 'ResultsPage']
class ResultsPage(BasePage): class ResultsPage(BasePage):
""" Page which contains results as a list of recipies """ Page which contains results as a list of recipies
""" """

View file

@ -24,7 +24,6 @@ from .job import AdeccoJobAdvert
import datetime import datetime
import re import re
__all__ = ['SearchPage', 'AdvertPage']
MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre'] MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']

View file

@ -28,9 +28,6 @@ from weboob.capabilities.bank import Account
from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction
__all__ = ['LoginPage', 'AccountsPage']
class LoginPage(HTMLPage): class LoginPage(HTMLPage):
def login(self, username, password): def login(self, username, password):
form = self.get_form(nr=1) form = self.get_form(nr=1)

View file

@ -23,9 +23,6 @@ from weboob.capabilities.base import NotAvailable, NotLoaded
from weboob.tools.browser import BasePage from weboob.tools.browser import BasePage
__all__ = ['RecipePage', 'ResultsPage', 'FourOFourPage']
class FourOFourPage(BasePage): class FourOFourPage(BasePage):
pass pass

View file

@ -26,8 +26,6 @@ from weboob.tools.browser import BasePage,BrokenPageError
from weboob.capabilities.bill import Subscription, Detail, Bill from weboob.capabilities.bill import Subscription, Detail, Bill
__all__ = ['AmeliBasePage', 'LoginPage', 'HomePage', 'AccountPage', 'LastPaymentsPage', 'PaymentDetailsPage', 'BillsPage']
# Ugly array to avoid the use of french locale # Ugly array to avoid the use of french locale
FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre'] FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']

View file

@ -21,9 +21,6 @@
from weboob.tools.test import BackendTest from weboob.tools.test import BackendTest
__all__ = ['AmeliTest']
class AmeliTest(BackendTest): class AmeliTest(BackendTest):
BACKEND = 'ameli' BACKEND = 'ameli'

View file

@ -26,8 +26,6 @@ from weboob.tools.browser import BasePage
from weboob.capabilities.bill import Subscription, Detail, Bill from weboob.capabilities.bill import Subscription, Detail, Bill
__all__ = ['LoginPage', 'HomePage', 'AccountPage', 'HistoryPage', 'BillsPage']
# Ugly array to avoid the use of french locale # Ugly array to avoid the use of french locale
FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre'] FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']

View file

@ -21,9 +21,6 @@
from weboob.tools.test import BackendTest from weboob.tools.test import BackendTest
__all__ = ['AmeliProTest']
class AmeliProTest(BackendTest): class AmeliProTest(BackendTest):
BACKEND = 'AmeliPro' BACKEND = 'AmeliPro'

View file

@ -29,9 +29,6 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Tra
from weboob.tools.date import ChaoticDateGuesser from weboob.tools.date import ChaoticDateGuesser
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage']
class LoginPage(BasePage): class LoginPage(BasePage):
def login(self, username, password): def login(self, username, password):
self.browser.select_form(name='ssoform') self.browser.select_form(name='ssoform')
@ -43,7 +40,6 @@ class LoginPage(BasePage):
self.browser.submit(nologin=True) self.browser.submit(nologin=True)
class AccountsPage(BasePage): class AccountsPage(BasePage):
def get_list(self): def get_list(self):
for box in self.document.getroot().cssselect('div.roundedBox div.contentBox'): for box in self.document.getroot().cssselect('div.roundedBox div.contentBox'):
@ -67,7 +63,6 @@ class TransactionsPage(BasePage):
COL_LABEL = 3 COL_LABEL = 3
COL_VALUE = -1 COL_VALUE = -1
def is_last(self): def is_last(self):
current = False current = False
for option in self.document.xpath('//select[@id="viewPeriod"]/option'): for option in self.document.xpath('//select[@id="viewPeriod"]/option'):

View file

@ -25,8 +25,6 @@ import re
from .job import ApecJobAdvert from .job import ApecJobAdvert
__all__ = ['SearchPage', 'AdvertPage']
class SearchPage(BasePage): class SearchPage(BasePage):
def iter_job_adverts(self): def iter_job_adverts(self):

View file

@ -25,9 +25,6 @@ from weboob.tools.browser import BasePage
from weboob.tools.capabilities.bank.transactions import FrenchTransaction from weboob.tools.capabilities.bank.transactions import FrenchTransaction
__all__ = ['LoginPage', 'AccountsPage', 'OperationsPage']
class LoginPage(BasePage): class LoginPage(BasePage):
def login(self, username, password): def login(self, username, password):
self.browser.select_form(nr=0) self.browser.select_form(nr=0)
@ -77,7 +74,6 @@ class OperationsPage(BasePage):
label = self.parser.tocleanstring(tds[self.COL_LABEL]) label = self.parser.tocleanstring(tds[self.COL_LABEL])
amount = self.parser.tocleanstring(tds[self.COL_AMOUNT]) amount = self.parser.tocleanstring(tds[self.COL_AMOUNT])
if len(amount) == 0: if len(amount) == 0:
continue continue

View file

@ -25,8 +25,6 @@ from weboob.tools.browser import BasePage, BrokenPageError
from weboob.capabilities import NotAvailable from weboob.capabilities import NotAvailable
__all__ = ['IndexPage', 'VideoPage', 'ForbiddenVideo', 'LoginPage', 'LoginRedirectPage']
from .video import ArretSurImagesVideo from .video import ArretSurImagesVideo

View file

@ -21,9 +21,6 @@
from weboob.capabilities.video import BaseVideo from weboob.capabilities.video import BaseVideo
__all__ = ['ArretSurImagesVideo']
class ArretSurImagesVideo(BaseVideo): class ArretSurImagesVideo(BaseVideo):
@classmethod @classmethod
def id2url(cls, _id): def id2url(cls, _id):

View file

@ -25,8 +25,6 @@ from weboob.capabilities.image import BaseImage
from weboob.capabilities.collection import Collection from weboob.capabilities.collection import Collection
from .video import ArteLiveVideo from .video import ArteLiveVideo
__all__ = ['ArteLivePage', 'ArteLiveVideoPage']
class ArteLiveVideoPage(BasePage): class ArteLiveVideoPage(BasePage):
def get_video(self, video=None): def get_video(self, video=None):

View file

@ -21,9 +21,6 @@
from weboob.capabilities.video import BaseVideo from weboob.capabilities.video import BaseVideo
__all__ = ['ArteVideo', 'ArteLiveVideo']
class ArteVideo(BaseVideo): class ArteVideo(BaseVideo):
@classmethod @classmethod
def id2url(cls, _id): def id2url(cls, _id):

View file

@ -23,9 +23,6 @@ from weboob.capabilities.base import NotAvailable
from weboob.tools.browser import BasePage from weboob.tools.browser import BasePage
__all__ = ['SubtitlesPage', 'SearchPage']
class SearchPage(BasePage): class SearchPage(BasePage):
def iter_subtitles(self, language, pattern): def iter_subtitles(self, language, pattern):
fontresult = self.parser.select(self.document.getroot(), 'div.search-results font.search-results') fontresult = self.parser.select(self.document.getroot(), 'div.search-results font.search-results')

View file

@ -20,9 +20,6 @@
import re import re
__all__ = ['AntiSpam']
class AntiSpam(object): class AntiSpam(object):
def check_thread(self, thread): def check_thread(self, thread):
resume = thread['title'] resume = thread['title']

View file

@ -18,8 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
import random import random
from weboob.tools.browser import BrowserUnavailable, BrowserIncorrectPassword from weboob.tools.browser import BrowserUnavailable, BrowserIncorrectPassword
@ -33,9 +31,6 @@ from aum.exceptions import AdopteWait, AdopteBanned
from aum.browser import AuMBrowser from aum.browser import AuMBrowser
__all__ = ['PriorityConnection']
class PriorityConnection(Optimization): class PriorityConnection(Optimization):
CONFIG = ValuesDict(ValueInt('minimal', label='Minimal of godchilds', default=5), CONFIG = ValuesDict(ValueInt('minimal', label='Minimal of godchilds', default=5),
Value('domain', label='Domain to use for fake accounts emails', default='aum.example.com'), Value('domain', label='Domain to use for fake accounts emails', default='aum.example.com'),

View file

@ -18,8 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from random import randint from random import randint
from weboob.tools.browser import BrowserUnavailable from weboob.tools.browser import BrowserUnavailable
@ -27,9 +25,6 @@ from weboob.capabilities.dating import Optimization
from weboob.tools.log import getLogger from weboob.tools.log import getLogger
__all__ = ['ProfilesWalker']
class ProfilesWalker(Optimization): class ProfilesWalker(Optimization):
def __init__(self, sched, storage, browser): def __init__(self, sched, storage, browser):
self.sched = sched self.sched = sched

View file

@ -18,17 +18,12 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.browser import BrowserUnavailable from weboob.tools.browser import BrowserUnavailable
from weboob.capabilities.dating import Optimization from weboob.capabilities.dating import Optimization
from weboob.capabilities.contact import QueryError from weboob.capabilities.contact import QueryError
from weboob.tools.log import getLogger from weboob.tools.log import getLogger
__all__ = ['QueriesQueue']
class QueriesQueue(Optimization): class QueriesQueue(Optimization):
def __init__(self, sched, storage, browser): def __init__(self, sched, storage, browser):
self.sched = sched self.sched = sched

Some files were not shown because too many files have changed in this diff Show more