From 92de31c0162323d30e0f06960fc234b90d4fa2ae Mon Sep 17 00:00:00 2001 From: Alexandr Popov Date: Tue, 10 Mar 2009 21:11:23 +0300 Subject: [PATCH] fixing get_ui in input.py --- src/input.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/input.py b/src/input.py index 03c9734..51d612d 100644 --- a/src/input.py +++ b/src/input.py @@ -4,12 +4,10 @@ # pylint: disable-msg=C0301 class Input(object): + def __init__(self, parser): + self.ui = parser + self.get_st_par() + def get_st_par(self): self.st_dir, self.st_cnt = self.ui.get() - return self.st_dir, self.st_cnt - - def __init__(self, cur_ui): - if cur_ui is 'console': - from optparser import OptParser - self.ui = OptParser() - self.get_st_par() + return self.st_dir, self.st_cnt -- 1.7.9.5