add __all__ variable to many modules
This commit is contained in:
parent
8638024756
commit
cebcead318
10 changed files with 38 additions and 2 deletions
|
|
@ -24,6 +24,10 @@ from optparse import OptionParser
|
|||
|
||||
from weboob import Weboob
|
||||
|
||||
|
||||
__all__ = ['BaseApplication']
|
||||
|
||||
|
||||
class BaseApplication(object):
|
||||
# Application name
|
||||
APPNAME = ''
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ from weboob.modules import BackendsConfig
|
|||
|
||||
from .base import BaseApplication
|
||||
|
||||
|
||||
__all__ = ['ConsoleApplication']
|
||||
|
||||
|
||||
class ConsoleApplication(BaseApplication):
|
||||
def __init__(self):
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -28,6 +28,10 @@ from weboob.scheduler import Scheduler
|
|||
|
||||
from .console import ConsoleApplication
|
||||
|
||||
|
||||
__all__ = ['PromptApplication']
|
||||
|
||||
|
||||
class PromptScheduler(Scheduler):
|
||||
def __init__(self, prompt_cb, read_cb):
|
||||
self.scheduler = sched.scheduler(time.time, self.sleep)
|
||||
|
|
|
|||
|
|
@ -37,6 +37,11 @@ except ImportError, e:
|
|||
else:
|
||||
HAVE_COOKIES = True
|
||||
|
||||
|
||||
__all__ = ['BrowserIncorrectPassword', 'BrowserBanned', 'BrowserUnavailable', 'BrowserRetry',
|
||||
'BasePage', 'BaseBrowser', ]
|
||||
|
||||
|
||||
# Exceptions
|
||||
class BrowserIncorrectPassword(Exception):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@ import yaml
|
|||
|
||||
from .iconfig import IConfig, ConfigError
|
||||
|
||||
|
||||
__all__ = ['YamlConfig']
|
||||
|
||||
|
||||
class YamlConfig(IConfig):
|
||||
def __init__(self, path):
|
||||
self.path = path
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@ except ImportError, e:
|
|||
from mechanize import CookieJar, Cookie
|
||||
|
||||
|
||||
__all__ = ['FirefoxCookieJar']
|
||||
|
||||
|
||||
class FirefoxCookieJar(CookieJar):
|
||||
def __init__(self, domain, sqlite_file=None, policy=None):
|
||||
CookieJar.__init__(self, policy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue