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:
parent
174b5674c1
commit
3da02fde24
206 changed files with 0 additions and 575 deletions
|
|
@ -21,9 +21,6 @@
|
|||
from weboob.tools.browser import BrowserUnavailable, BasePage as _BasePage
|
||||
|
||||
|
||||
__all__ = ['BasePage']
|
||||
|
||||
|
||||
class BasePage(_BasePage):
|
||||
def on_loaded(self):
|
||||
errors = []
|
||||
|
|
|
|||
|
|
@ -22,9 +22,6 @@ from weboob.tools.browser import BrowserIncorrectPassword, BrowserBanned
|
|||
from .base import BasePage
|
||||
|
||||
|
||||
__all__ = ['IndexPage', 'LoginPage']
|
||||
|
||||
|
||||
class IndexPage(BasePage):
|
||||
def is_logged(self):
|
||||
return 'id' in self.document.find('body').attrib
|
||||
|
|
|
|||
|
|
@ -31,9 +31,6 @@ from weboob.capabilities.base import NotLoaded
|
|||
from .base import BasePage
|
||||
|
||||
|
||||
__all__ = ['TorrentsPage']
|
||||
|
||||
|
||||
class TorrentsPage(BasePage):
|
||||
TORRENTID_REGEXP = re.compile('torrents\.php\?action=download&id=(\d+)')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue