Commit e9c047ce authored by Laurent Bachelier's avatar Laurent Bachelier 🐧

applications: Define std* in the proper class

This would make weboob-debug unusable, for example.
parent 1150e89b
......@@ -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 = ''
NC = '' # 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment