eric6/DebugClients/Python/DebugClientBase.py

changeset 8262
2f6310aac6cd
parent 8257
28146736bbfc
child 8273
698ae46f40a4
child 8328
e22ce9001905
diff -r 0c2aa0ad149f -r 2f6310aac6cd eric6/DebugClients/Python/DebugClientBase.py
--- 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):

eric ide

mercurial