diff options
Diffstat (limited to 'Demo/stdwin/python.py')
-rwxr-xr-x | Demo/stdwin/python.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/stdwin/python.py b/Demo/stdwin/python.py index ce398aa..2506078 100755 --- a/Demo/stdwin/python.py +++ b/Demo/stdwin/python.py @@ -375,7 +375,7 @@ def do_exec(win): save_stdout = sys.stdout save_stderr = sys.stderr try: - sys.stdin = sys.stdout = sys.stderr = IOWindow().init(win) + sys.stdin = sys.stdout = sys.stderr = IOWindow(win) win.busy = 1 try: exec(command, win.globals) @@ -404,9 +404,8 @@ def do_exec(win): # class IOWindow: # - def init(self, win): + def __init__(self, win): self.win = win - return self # def readline(self, *unused_args): n = len(inputwindows) |