applications: Define std* in the proper class
This would make weboob-debug unusable, for example.
This commit is contained in:
parent
1150e89b65
commit
e9c047ce93
2 changed files with 4 additions and 4 deletions
|
|
@ -100,6 +100,10 @@ class BaseApplication(object):
|
|||
# Copyright
|
||||
COPYRIGHT = None
|
||||
|
||||
stdin = sys.stdin
|
||||
stdout = sys.stdout
|
||||
stderr = sys.stderr
|
||||
|
||||
# ------ Abstract methods --------------------------------------
|
||||
def create_weboob(self):
|
||||
return Weboob()
|
||||
|
|
|
|||
|
|
@ -73,10 +73,6 @@ class ConsoleApplication(BaseApplication):
|
|||
BOLD = '[1m'
|
||||
NC = '[0m' # no color
|
||||
|
||||
stdin = sys.stdin
|
||||
stdout = sys.stdout
|
||||
stderr = sys.stderr
|
||||
|
||||
def __init__(self, option_parser=None):
|
||||
BaseApplication.__init__(self, option_parser)
|
||||
self.weboob.callbacks['login'] = self.login_cb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue