mirror of
https://github.com/python/cpython.git
synced 2025-09-10 10:47:34 +00:00
*** empty log message ***
This commit is contained in:
parent
9e80d6f125
commit
d55f4d1a76
5 changed files with 12 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue