diff Mac/Python/pyGUSISIOUX.cp @ 22027:7fbefe3e3dee 2.2

backport of 1.4: Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre Parenteau.
author Jack Jansen <jack.jansen@cwi.nl>
date Sun, 24 Feb 2002 23:07:58 +0000
parents 4ef7eb90b69a
children 74d1ad61f843
line wrap: on
line diff
--- a/Mac/Python/pyGUSISIOUX.cp	Sun Feb 24 23:07:04 2002 +0000
+++ b/Mac/Python/pyGUSISIOUX.cp	Sun Feb 24 23:07:58 2002 +0000
@@ -79,10 +79,12 @@
 
 GUSISIOUXSocket::GUSISIOUXSocket(int fd) : fFd(fd) 
 {
-	if (!PyMac_GetDelayConsoleFlag() && !hasCustomConsole() && !initialized)
-		Initialize();
-	/* Tell the upper layers there's no unseen output */
-	PyMac_OutputSeen();
+	if (!hasCustomConsole()) {
+		if (!PyMac_GetDelayConsoleFlag() && !initialized)
+			Initialize();
+		/* Tell the upper layers there's no unseen output */
+		PyMac_OutputSeen();
+	}
 }
 
 void