--- a/eric6/DebugClients/Python/DebugClientBase.py Sat Apr 24 16:35:05 2021 +0200 +++ b/eric6/DebugClients/Python/DebugClientBase.py Sun Apr 25 15:21:50 2021 +0200 @@ -54,8 +54,8 @@ """ if DebugClientInstance is None or not DebugClientInstance.redirect: return DebugClientOrigInput(prompt) - - return DebugClientInstance.input(prompt) + else: + return DebugClientInstance.input(prompt) # Use our own input(). try: @@ -77,8 +77,8 @@ """ if DebugClientInstance is None: DebugClientOrigClose(fd) - - DebugClientInstance.close(fd) + else: + DebugClientInstance.close(fd) # use our own close(). if 'close' in dir(os):